MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / StopObserver

Function StopObserver

sqlchain/observer/observer.go:85–96  ·  view source on GitHub ↗

StopObserver stops the service and http API server returned by StartObserver.

(service *Service, httpServer *http.Server)

Source from the content-addressed store, hash-verified

83
84// StopObserver stops the service and http API server returned by StartObserver.
85func StopObserver(service *Service, httpServer *http.Server) (err error) {
86 // stop explorer api
87 if err = stopAPI(httpServer); err != nil {
88 log.WithError(err).Fatal("stop explorer api failed")
89 }
90
91 // stop subscriptions
92 if err = stopService(service); err != nil {
93 log.WithError(err).Fatal("stop service failed")
94 }
95 return
96}

Callers 1

startExplorerServerFunction · 0.92

Calls 4

WithErrorFunction · 0.92
stopAPIFunction · 0.85
stopServiceFunction · 0.85
FatalMethod · 0.80

Tested by

no test coverage detected