Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartPool/smartpool-client
/ AddWork
Method
AddWork
ethereum/work_pool.go:46–48 ·
view source on GitHub ↗
(w *Work)
Source
from the content-addressed store, hash-verified
44
}
45
46
func
(wp WorkPool) AddWork(w *Work) {
47
wp[w.ID()] = w
48
}
49
50
func
(wp WorkPool) Cleanning() {
51
ticker := time.Tick(140 * time.Second)
Callers
2
TestWorkPoolAddWorkByItsID
Function · 0.95
GetWork
Method · 0.80
Calls
1
ID
Method · 0.65
Tested by
1
TestWorkPoolAddWorkByItsID
Function · 0.76