Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Dec 6, 2024
1 parent 7f12ec9 commit 490d0ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ package server
import (
"context"
"errors"
"log"
"net/http"
"time"

"github.com/gorilla/mux"

"github.com/ethereum/go-ethereum/log"

"github.com/offchainlabs/bold/api/backend"
"github.com/offchainlabs/bold/util/stopwaiter"
)
Expand Down Expand Up @@ -57,7 +58,7 @@ func (s *Server) Start(ctx context.Context) error {
go func() {
<-ctx.Done()
if err := s.srv.Shutdown(ctx); err != nil {
log.Fatal(err)
log.Error("Could not shutdown API server", "err", err)
}
}()
return s.srv.ListenAndServe()
Expand Down

0 comments on commit 490d0ae

Please sign in to comment.