ax(mining): replace NewManager prose comment with usage example
AX principle 2: comments show HOW with real values, not what the signature already says. Replace "creates a new miner manager" prose with a concrete call-site example showing manager lifecycle. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
28dfe3f31e
commit
2b2b89f158
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ func (m *Manager) emitEvent(eventType EventType, data interface{}) {
|
|||
|
||||
var _ ManagerInterface = (*Manager)(nil)
|
||||
|
||||
// NewManager creates a new miner manager and autostarts miners based on config.
|
||||
// manager := mining.NewManager()
|
||||
// defer manager.Stop()
|
||||
func NewManager() *Manager {
|
||||
m := &Manager{
|
||||
miners: make(map[string]Miner),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue