Skip to content

Commit

Permalink
代码结构调整
Browse files Browse the repository at this point in the history
  • Loading branch information
gowater committed Feb 14, 2024
1 parent 0418d1e commit aa163d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"github.com/go-water/water/circuitbreaker"
"github.com/go-water/water/endpoint"
"github.com/go-water/water/logger"
"github.com/go-water/water/ratelimit"
"github.com/sony/gobreaker"
"go.uber.org/zap"
Expand Down Expand Up @@ -36,7 +35,7 @@ func NewHandler(srv Service, options ...ServerOption) Handler {
s.e = circuitbreaker.GoBreaker(s.breaker)(s.e)
}

handler := NewLogErrorHandler(logger.Logger, srv.Name(srv))
handler := NewLogErrorHandler(Logger, srv.Name(srv))
srv.SetLogger(handler.GetLogger())
s.l = handler.GetLogger()
s.errorHandler = handler
Expand Down

0 comments on commit aa163d5

Please sign in to comment.