Commits

Anonymous committed 8f3c439

I am an 80 column queen.

  • Participants
  • Parent commits b8e14ea

Comments (0)

Files changed (1)

File src/riak_connect.erl

                                            Rest))
                           end,
             case lists:filter(fun(N) -> 
-                                      Next = StepsToNext(N),
-                                      (Next >= TargetN) orelse (Next == length(Rest))
+                                 Next = StepsToNext(N),
+                                 (Next >= TargetN) orelse (Next == length(Rest))
                               end,
                               Candidates) of
                 [] ->
                     target_n_fail;
                 Qualifiers ->
-                    %% these nodes don't violate target_n in the forward direction
-                    Chosen = lists:nth(crypto:rand_uniform(1, length(Qualifiers)+1),
+                    %% these nodes don't violate target_n forward
+                    Chosen = lists:nth(crypto:rand_uniform(
+                                         1, length(Qualifiers)+1),
                                        Qualifiers),
                     %% choose one, and do the rest of the ring
                     attempt_simple_transfer(