Skip to content

Commit

Permalink
feat: add err checking for bus service server creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Simpson committed Dec 23, 2024
1 parent 049d621 commit 7a53deb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/character-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func main() {
characterbus.Message{}.GetType(): srvCtx.ResetCharacterBus(),
},
)
if err != nil {
log.Logger.WithContext(ctx).Errorf("create bus service: %v", err)
return
}
commonpb.RegisterBusServiceServer(grpcServer, busService)
err = commonpb.RegisterBusServiceHandlerFromEndpoint(ctx, gwmux, cfg.Server.Address(), opts)
if err != nil {
Expand Down

0 comments on commit 7a53deb

Please sign in to comment.