Anonymous avatar Anonymous committed 7ed7d97

fix some edoc and cleanup compile warnings

Comments (0)

Files changed (2)

src/riak_fs_backend.erl

         true -> file:read_file(File)
     end.
 
-%% @spec atomic_write(File :: string(), Val :: binary()) ->
+%% @spec atomic_write(state(), File :: string(), Val :: binary()) ->
 %%       ok | {error, Reason :: term()}
 %% @doc store a atomic value to disk. Write to temp file and rename to
 %%       normal path.
-atomic_write(State, File, Val) ->
+atomic_write(_State, File, Val) ->
     FakeFile = File ++ ".tmpwrite",
     case file:write_file(FakeFile, Val) of
         ok ->

src/riak_util.erl

      rpc:call(Node, code, load_file, [Module])} || 
         Node <- riak_ring:all_members(Ring)].
 
-%% @spec try_cast(term(), term(), [{Index :: term(), Node :: node()}]) ->
+%% @spec try_cast(term(), term(), [node()], [{Index :: term(), Node :: node()}]) ->
 %%          {[{Index :: term(), Node :: node(), Node :: node()}],
 %%           [{Index :: term(), Node :: node()}]}
 %% @doc Cast {Cmd, {Index,Node}, Msg} at riak_vnode_master on Node
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.