docs(proxy): align public comments with AX
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
460aae14fb
commit
cf4136c8f0
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ func getSplitterFactory(mode string) (func(*Config, *EventBus) Splitter, bool) {
|
|||
return factory, ok
|
||||
}
|
||||
|
||||
// LoadConfig reads and unmarshals a JSON config file.
|
||||
// LoadConfig("/etc/proxy.json")
|
||||
//
|
||||
// cfg, result := LoadConfig("/etc/proxy.json")
|
||||
// if !result.OK {
|
||||
|
|
@ -69,7 +69,7 @@ func LoadConfig(path string) (*Config, Result) {
|
|||
return config, config.Validate()
|
||||
}
|
||||
|
||||
// Validate checks that mandatory bind and pool settings are present.
|
||||
// Validate(&Config{Mode: "nicehash", Bind: []BindAddr{{Host: "0.0.0.0", Port: 3333}}, Pools: []PoolConfig{{URL: "pool.example:3333", Enabled: true}}})
|
||||
//
|
||||
// if result := cfg.Validate(); !result.OK {
|
||||
// return result
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue