Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akash-network/node
/ newFreePorts
Function
newFreePorts
testutil/network/network.go:211–216 ·
view source on GitHub ↗
(ports []int)
Source
from the content-addressed store, hash-verified
209
}
210
211
func
newFreePorts(ports []int) *freePorts {
212
return
&freePorts{
213
idx: 0,
214
ports: ports,
215
}
216
}
217
218
func
(p *freePorts) mustGetPort() int {
219
defer
p.lock.Unlock()
Callers
1
New
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected