Skip to content

Commit

Permalink
refactor: style edits + error return
Browse files Browse the repository at this point in the history
  • Loading branch information
taco-paco committed Jun 12, 2024
1 parent 942768f commit c707f79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion aggregator/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func aggregatorMain(ctx *cli.Context) error {
return err
}
}

go rpcServer.Start()

restServer := restserver.NewRestServer(config.AggregatorRestServerIpPortAddr, agg, logger)
Expand Down
1 change: 1 addition & 0 deletions aggregator/rest_server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (s *RestServer) handleGetStateRootUpdateAggregation(w http.ResponseWriter,
response, err := s.app.GetStateRootUpdateAggregation(uint32(rollupId), blockHeight)
if err != nil {
http.Error(w, err.Error(), mapErrorToCode(err))
return err
}

w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit c707f79

Please sign in to comment.