Commits

Scott Fritchie  committed 34d5c21

Formatting, spelling, & ununused var cleanups from Joe Norton

  • Participants
  • Parent commits 1089603

Comments (0)

Files changed (2)

File src/basho_bench_driver_hibari.erl

 %% ====================================================================
 
 new(Id) ->
-    %% Try to tell the user politely if there's a missing movule and where
+    %% Try to tell the user politely if there's a missing module and where
     %% that module might be found.
     DepMods = [
                {brick_simple,
               ] ++
         [{Mod, x} || Mod <- [
                              %% gdss app
-                             brick_simple, brick_server, brick_hash, 
+                             brick_simple, brick_server, brick_hash,
                              %% gmt app
                              gmt_util,
                              %% ubf app
                                         ?FAIL_MSG(
                                            "Please double-check the path for "
                                            "this module in\nthe basho_bench "
-                                           "config file, e.g.\n    ~s\n", 
+                                           "config file, e.g.\n    ~s\n",
                                            [Dir]);
                                    true ->
                                         ok
         brick_simple:do(Table, OpList, ?BASIC_TIMEOUT)
     catch _X:_Y ->
         ?ERROR("Error on ~p: ~p ~p\n", [Table, _X, _Y]),
-        {error, {_X, _Y}}                                 
+        {error, {_X, _Y}}
     end;
 do(Type, Clnt, Table, OpList)
   when Type == ubf; Type == ebf; Type == jsf ->
         error:{badmatch, {error, socket_closed}} ->
             socket_closed;
         error:{badmatch, timeout} ->
-            timeout;                                                     
+            timeout;
         error:badpid ->
             %% This error corresponds to a timeout error .....
-            %%
-            %%
             ?ERROR("TODO: error:badpid for ~p\n", [Clnt]),
             error_badpid;
         _X:_Y ->
     %%?INFO("close_and_reopen #~p\n", [OldId]),
     catch ubf_client:close(OldClnt),
 
-    %% Take advantage of the fact that native clients don't need to re-do
-    %% anything, so just pass 'foo' instead.
+    %% Take advantage of the fact that native clients don't need to
+    %% re-do anything, so just pass 'foo' instead.
     Id = if HibariType == native -> foo;
             true                 -> OldId
          end,

File src/basho_bench_driver_null.erl

     {ok, undefined}.
 
 run(get, KeyGen, _ValueGen, State) ->
-    Key = KeyGen(),
+    _Key = KeyGen(),
     {ok, State};
 run(put, KeyGen, ValueGen, State) ->
-    Key = KeyGen(),
+    _Key = KeyGen(),
     ValueGen(),
     {ok, State};
 run(delete, KeyGen, _ValueGen, State) ->
-    Key = KeyGen(),
+    _Key = KeyGen(),
     {ok, State}.