MCPcopy Create free account
hub / github.com/MG-RAST/Shock / getGID

Function getGID

shock-server/node/locker/locker.go:307–314  ·  view source on GitHub ↗

hacky function for debugging

()

Source from the content-addressed store, hash-verified

305
306// hacky function for debugging
307func getGID() uint64 {
308 b := make([]byte, 64)
309 b = b[:runtime.Stack(b, false)]
310 b = bytes.TrimPrefix(b, []byte("goroutine "))
311 b = b[:bytes.IndexByte(b, ' ')]
312 n, _ := strconv.ParseUint(string(b), 10, 64)
313 return n
314}

Callers 3

NewNodeLockFunction · 0.85
lockMethod · 0.85
unlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected