Fix typos (worker type)
This commit is contained in:
parent
c524b8b1ce
commit
f4e8515794
@ -1,6 +1,6 @@
|
|||||||
{application,gmhive_client,
|
{application,gmhive_client,
|
||||||
[{description,"Gajumaru Hive client"},
|
[{description,"Gajumaru Hive client"},
|
||||||
{vsn,"0.1.1"},
|
{vsn,"0.1.2"},
|
||||||
{registered,[]},
|
{registered,[]},
|
||||||
{applications,[kernel,stdlib,sasl,gproc,enoise,gmconfig,
|
{applications,[kernel,stdlib,sasl,gproc,enoise,gmconfig,
|
||||||
gmhive_protocol,gmhive_worker]},
|
gmhive_protocol,gmhive_worker]},
|
||||||
|
@ -27,12 +27,12 @@ schema() ->
|
|||||||
pubkey => str(#{pattern => ?ACCOUNT_PATTERN},
|
pubkey => str(#{pattern => ?ACCOUNT_PATTERN},
|
||||||
<<"Primary client pubkey">>)
|
<<"Primary client pubkey">>)
|
||||||
, extra_pubkeys => array(#{ description =>
|
, extra_pubkeys => array(#{ description =>
|
||||||
<<"Additional miner pubkeys, sharing rewards">>
|
<<"Additional worker pubkeys, sharing rewards">>
|
||||||
, default => []
|
, default => []
|
||||||
},
|
},
|
||||||
str(#{pattern => ?ACCOUNT_PATTERN}))
|
str(#{pattern => ?ACCOUNT_PATTERN}))
|
||||||
, type => str(#{ enum => [<<"miner">>, <<"monitor">>]
|
, type => str(#{ enum => [<<"worker">>, <<"monitor">>]
|
||||||
, default => <<"miner">>
|
, default => <<"worker">>
|
||||||
, description => <<"monitor mode can be used to see if a pool is alive">>})
|
, description => <<"monitor mode can be used to see if a pool is alive">>})
|
||||||
, pool => pool()
|
, pool => pool()
|
||||||
, pool_admin => pool_admin()
|
, pool_admin => pool_admin()
|
||||||
|
@ -442,7 +442,7 @@ to_atom(A) when is_atom(A) -> A;
|
|||||||
to_atom(S) ->
|
to_atom(S) ->
|
||||||
binary_to_existing_atom(iolist_to_binary(S), utf8).
|
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).
|
gmhc_server:connected(Id, Type).
|
||||||
|
|
||||||
disconnected(Id) ->
|
disconnected(Id) ->
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{prefix,"gmhc"}.
|
{prefix,"gmhc"}.
|
||||||
{author,"Ulf Wiger, QPQ AG"}.
|
{author,"Ulf Wiger, QPQ AG"}.
|
||||||
{desc,"Gajumaru Hive Client"}.
|
{desc,"Gajumaru Hive Client"}.
|
||||||
{package_id,{"uwiger","gmhive_client",{0,1,1}}}.
|
{package_id,{"uwiger","gmhive_client",{0,1,2}}}.
|
||||||
{deps,[{"uwiger","setup",{2,2,4}},
|
{deps,[{"uwiger","setup",{2,2,4}},
|
||||||
{"uwiger","gproc",{1,0,1}},
|
{"uwiger","gproc",{1,0,1}},
|
||||||
{"uwiger","gmconfig",{0,1,2}},
|
{"uwiger","gmconfig",{0,1,2}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user