Fix typos (worker type)

This commit is contained in:
Ulf Wiger
2025-05-14 08:22:43 +02:00
parent c524b8b1ce
commit f4e8515794
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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()
+1 -1
View File
@@ -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) ->