refactor(proxy): clarify public wiring comments
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
0a7c99264b
commit
f0d5f6ae86
1 changed files with 3 additions and 2 deletions
5
proxy.go
5
proxy.go
|
|
@ -14,8 +14,9 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// Proxy is the top-level orchestrator.
|
||||
// Proxy wires the configured listeners, splitters, stats, workers, and log sinks.
|
||||
//
|
||||
// cfg := &proxy.Config{Mode: "nicehash", Bind: []proxy.BindAddr{{Host: "0.0.0.0", Port: 3333}}, Pools: []proxy.PoolConfig{{URL: "pool.example:3333", Enabled: true}}, Workers: proxy.WorkersByRigID}
|
||||
// p, result := proxy.New(cfg)
|
||||
// if result.OK {
|
||||
// p.Start()
|
||||
|
|
@ -44,7 +45,7 @@ type Proxy struct {
|
|||
submitCount atomic.Int64
|
||||
}
|
||||
|
||||
// Splitter is the shared interface implemented by the NiceHash and simple modes.
|
||||
// Splitter routes miner logins, submits, and disconnects to the active upstream strategy.
|
||||
//
|
||||
// splitter := nicehash.NewNonceSplitter(cfg, bus, pool.NewStrategyFactory(cfg))
|
||||
// splitter.Connect()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue