Skip to content

Commit

Permalink
Correct spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Svensson <[email protected]>
  • Loading branch information
bjosv committed Nov 5, 2024
1 parent cb124cb commit a28e3b1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ least the key `msg_type`.

Messages about the cluster as a whole:

* `#{msg_type := cluster_ok}` is sent when the cluster is up and runnning and
* `#{msg_type := cluster_ok}` is sent when the cluster is up and running and
ered is connected to all nodes.

* `#{msg_type := cluster_not_ok, reason := Reason}` is sent when something is
Expand Down
2 changes: 1 addition & 1 deletion src/ered_command.erl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ get_response_class({redis_command, pipeline, Data}) ->
-spec resp_class(binary()) -> response_class().
%%
%% Given a RESP-formatted command, returns a classification which can
%% be used to interpret the response(s) from Redis, particularily for
%% be used to interpret the response(s) from Redis, particularly for
%% pubsub commands that don't return anything but expect certain push
%% messages to indicate success.
%%
Expand Down
2 changes: 1 addition & 1 deletion src/ered_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ parse_initial(Token) ->
<<"*", Rest/binary>> -> aggregate_N(parse_size(Rest), parse_array([]));
%% RESP3
<<"_" >> -> {done, undefined}; % Null
<<",inf">> -> {done, inf}; % float inifinity
<<",inf">> -> {done, inf}; % float infinity
<<",-inf">> -> {done, neg_inf}; % negative infinity
<<",nan">> -> {done, nan}; % NaN
<<",-nan">> -> {done, nan}; % returned by some versions of redis
Expand Down
6 changes: 3 additions & 3 deletions test/ered_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ t_manual_failover_then_old_master_down(_) ->

t_blackhole(_) ->
%% Simulate that a Redis node is unreachable, e.g. a network failure. We use
%% 'docket pause', similar to sending SIGSTOP to a process, to make one
%% 'docker pause', similar to sending SIGSTOP to a process, to make one
%% Redis node unresponsive. This makes TCP recv() and connect() time out.
CloseWait = 2000, % default is 10000
NodeDownTimeout = 2000, % default is 2000
Expand Down Expand Up @@ -470,7 +470,7 @@ t_blackhole(_) ->

t_blackhole_all_nodes(_) ->
%% Simulate that all nodes are unreachable, e.g. a network failure. We use
%% 'docket pause', similar to sending SIGSTOP to a process, to make the
%% 'docker pause', similar to sending SIGSTOP to a process, to make the
%% nodes unresponsive. This makes TCP recv() and connect() time out.
CloseWait = 2000, % default is 10000
NodeDownTimeout = 2000, % default is 2000
Expand Down Expand Up @@ -587,7 +587,7 @@ t_empty_initial_slotmap(_) ->
|| Port <- ?PORTS],
?MSG(#{msg_type := cluster_ok}, 5000),

%% Ingore all slotmap updates. There may be multiple of those before all
%% Ignore all slotmap updates. There may be multiple of those before all
%% nodes have discovered each other. There may be incomplete slotmaps as
%% well before all nodes have discovered each other, so the connections to
%% some nodes may be temporarily deactivated.
Expand Down
2 changes: 1 addition & 1 deletion test/ered_connection_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ split_data_test() ->
<<"OK">> = ered_connection:command(Conn1, [<<"set">>, <<"key1">>, Data]),
Data = ered_connection:command(Conn1, [<<"get">>, <<"key1">>]).

%% Supress warnings due to expected failures from MalformedCommand.
%% Suppress warnings due to expected failures from MalformedCommand.
-dialyzer({[no_fail_call, no_return], trailing_reply_test/0}).
trailing_reply_test() ->
Pid = self(),
Expand Down

0 comments on commit a28e3b1

Please sign in to comment.