Skip to content

Commit

Permalink
Merge branch 'develop' into add_time
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Sep 25, 2024
2 parents 7f919f1 + f2a562b commit 4c0dc22
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ func startStandAlone(svrCtx *server.Context, opts StartOptions) error {
return err
}

defer func() {
if err := db.Close(); err != nil {
svrCtx.Logger.Error("error closing db", "error", err.Error())
}
}()

traceWriterFile := svrCtx.Viper.GetString(srvflags.TraceStore)
traceWriter, err := openTraceWriter(traceWriterFile)
if err != nil {
Expand Down Expand Up @@ -317,12 +311,6 @@ func startInProcess(svrCtx *server.Context, clientCtx client.Context, opts Start
return err
}

defer func() {
if err := db.Close(); err != nil {
logger.With("error", err).Error("error closing db")
}
}()

traceWriterFile := svrCtx.Viper.GetString(srvflags.TraceStore)
traceWriter, err := openTraceWriter(traceWriterFile)
if err != nil {
Expand Down

0 comments on commit 4c0dc22

Please sign in to comment.