RegisterServerStart registers a hook that is run when the first group is created.
(fn func())
| 125 | // RegisterServerStart registers a hook that is run when the first |
| 126 | // group is created. |
| 127 | func RegisterServerStart(fn func()) { |
| 128 | if initPeerServer != nil { |
| 129 | panic("RegisterServerStart called more than once") |
| 130 | } |
| 131 | initPeerServer = fn |
| 132 | } |
| 133 | |
| 134 | func callInitPeerServer() { |
| 135 | if initPeerServer != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…