Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Jun 7, 2022
1 parent 62875c2 commit 7e0d827
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ executors:
- image: *OTP24
- *redis_container
- *riak_container
otp_25_elasticsearch_cassandra_mnesia:
otp_25_elasticsearch_cassandra:
docker:
- image: *OTP25
- *redis_container
Expand Down Expand Up @@ -842,7 +842,7 @@ workflows:
filters: *all_tags
- big_tests_in_docker:
name: elasticsearch_and_cassandra_25
executor: otp_25_elasticsearch_cassandra_mnesia
executor: otp_25_elasticsearch_cassandra
context: mongooseim-org
preset: elasticsearch_and_cassandra_mnesia
db: "elasticsearch cassandra"
Expand All @@ -858,6 +858,7 @@ workflows:
- small_tests_24
- ldap_mnesia_24
- pgsql_mnesia_24
- riak_mnesia_24
- dynamic_domains_pgsql_mnesia_24

- small_tests_25
Expand All @@ -866,7 +867,6 @@ workflows:
- mysql_redis_25
- mssql_mnesia_25
- ldap_mnesia_25
- riak_mnesia_24
- elasticsearch_and_cassandra_25
- dynamic_domains_pgsql_mnesia_25
- dynamic_domains_mysql_redis_25
Expand Down
8 changes: 3 additions & 5 deletions src/http_upload/mod_http_upload_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,9 @@ with_port_component(Scheme, Host, Port) ->
_ -> <<Host/binary, ":", (integer_to_binary(Port))/binary>>
end.

scheme_to_port(Scheme, Default) ->
case lists:keyfind(Scheme, 1, [{http, 80}, {https, 443}]) of
{Scheme, Port} -> Port;
_ -> Default
end.
scheme_to_port(http, _Default) -> 80;
scheme_to_port(https, _Default) -> 443;
scheme_to_port(_Scheme, Default) -> Default.

-spec trim_slash(binary()) -> binary().
trim_slash(<<>>) ->
Expand Down
2 changes: 1 addition & 1 deletion src/mod_muc_rdbms.erl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ execute_insert_room(HostType, MucHost, RoomName, ExtOpts) ->

-spec execute_insert_aff(mongooseim:host_type(), RoomID :: room_id(),
UserU :: jid:luser(), UserS :: jid:lserver(),
Res ::binary(), ExtAff :: pos_integer()) -> ok.
Res :: binary(), ExtAff :: pos_integer()) -> ok.
execute_insert_aff(HostType, RoomID, UserU, UserS, Res, ExtAff) ->
Args = [RoomID, UserU, UserS, Res, ExtAff],
execute_successfully(HostType, muc_insert_aff, Args),
Expand Down

0 comments on commit 7e0d827

Please sign in to comment.