ax(node): replace NewWorker prose comment with usage example
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
b41c63b10f
commit
e707710e9d
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,9 @@ type Worker struct {
|
|||
startTime time.Time
|
||||
}
|
||||
|
||||
// NewWorker creates a new Worker instance.
|
||||
// worker := node.NewWorker(nodeManager, transport)
|
||||
// worker.SetMinerManager(miningManager)
|
||||
// worker.RegisterWithTransport()
|
||||
func NewWorker(node *NodeManager, transport *Transport) *Worker {
|
||||
return &Worker{
|
||||
node: node,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue