MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Stop

Method Stop

cmd/cql-eth-exchange/exchange.go:153–165  ·  view source on GitHub ↗

Stop stops the exchange service and disconnect from the ethereum network.

()

Source from the content-addressed store, hash-verified

151
152// Stop stops the exchange service and disconnect from the ethereum network.
153func (e *Exchange) Stop() {
154 e.stopPreviousSubscribe()
155
156 if e.newBlockHeaderCh != nil {
157 close(e.newBlockHeaderCh)
158 e.newBlockHeaderCh = nil
159 }
160 if e.cancelProcess != nil {
161 e.cancelProcess()
162 e.cancelProcess = nil
163 e.processCtx = nil
164 }
165}
166
167func (e *Exchange) stopPreviousSubscribe() {
168 if e.subscription != nil {

Callers 2

mainFunction · 0.95
processMethod · 0.45

Calls 1

stopPreviousSubscribeMethod · 0.95

Tested by

no test coverage detected