MCPcopy
hub / github.com/koderover/zadig / postRun

Function postRun

pkg/cli/upgradeassistant/cmd/migrate.go:191–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func postRun() error {
192 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
193 defer cancel()
194
195 if err := mongotool.Close(ctx); err != nil {
196 return fmt.Errorf("failed to close mongo connection, error: %s", err)
197 }
198
199 return nil
200}

Callers 2

check.goFile · 0.85
migrate.goFile · 0.85

Calls 2

CloseMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected