MCPcopy
hub / github.com/baetyl/baetyl / Close

Method Close

engine/engine.go:539–552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537}
538
539func (e *engineImpl) Close() {
540 e.log.Debug("engine close")
541 e.tomb.Kill(nil)
542 e.tomb.Wait()
543 if e.pb != nil {
544 err := e.pb.Unsubscribe(sync.TopicDownside, e.downsideChan)
545 if err != nil {
546 e.log.Warn("failed to unsubscribe topic downside")
547 }
548 }
549 if e.downsideProcess != nil {
550 e.downsideProcess.Close()
551 }
552}
553
554func genSystemCert(sec security.Security) error {
555 appName := os.Getenv(context.KeyAppName)

Callers 2

TestApplyAppFunction · 0.95
TestInjectCertFunction · 0.95

Calls 3

DebugMethod · 0.65
CloseMethod · 0.65
UnsubscribeMethod · 0.45

Tested by 2

TestApplyAppFunction · 0.76
TestInjectCertFunction · 0.76