Fix typos (worker type)
This commit is contained in:
@@ -27,12 +27,12 @@ schema() ->
|
||||
pubkey => str(#{pattern => ?ACCOUNT_PATTERN},
|
||||
<<"Primary client pubkey">>)
|
||||
, extra_pubkeys => array(#{ description =>
|
||||
<<"Additional miner pubkeys, sharing rewards">>
|
||||
<<"Additional worker pubkeys, sharing rewards">>
|
||||
, default => []
|
||||
},
|
||||
str(#{pattern => ?ACCOUNT_PATTERN}))
|
||||
, type => str(#{ enum => [<<"miner">>, <<"monitor">>]
|
||||
, default => <<"miner">>
|
||||
, type => str(#{ enum => [<<"worker">>, <<"monitor">>]
|
||||
, default => <<"worker">>
|
||||
, description => <<"monitor mode can be used to see if a pool is alive">>})
|
||||
, pool => pool()
|
||||
, pool_admin => pool_admin()
|
||||
|
||||
@@ -442,7 +442,7 @@ to_atom(A) when is_atom(A) -> A;
|
||||
to_atom(S) ->
|
||||
binary_to_existing_atom(iolist_to_binary(S), utf8).
|
||||
|
||||
connected(Id, Type) when Type==miner; Type==monitor ->
|
||||
connected(Id, Type) when Type==worker; Type==monitor ->
|
||||
gmhc_server:connected(Id, Type).
|
||||
|
||||
disconnected(Id) ->
|
||||
|
||||
Reference in New Issue
Block a user