diff --git a/main.go b/main.go index d08a2aa..16f5fac 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ import ( "github.com/MruV-RP/mruv-pb-go/server" "github.com/MruV-RP/mruv-pb-go/spots" "github.com/MruV-RP/mruv-pb-go/vehicles" - middleware "github.com/grpc-ecosystem/go-grpc-middleware" + "github.com/grpc-ecosystem/go-grpc-middleware" "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus" "github.com/grpc-ecosystem/go-grpc-middleware/recovery" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" @@ -63,11 +63,11 @@ func RunGRPCServer() { //serve gRPC services s := grpc.NewServer(grpc.MaxRecvMsgSize(1048576), - grpc.StreamInterceptor(middleware.ChainStreamServer( + grpc.StreamInterceptor(grpc_middleware.ChainStreamServer( grpc_logrus.StreamServerInterceptor(logrus.NewEntry(logrus.New())), grpc_recovery.StreamServerInterceptor(), )), - grpc.UnaryInterceptor(middleware.ChainUnaryServer( + grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer( grpc_logrus.UnaryServerInterceptor(logrus.NewEntry(logrus.New())), grpc_recovery.UnaryServerInterceptor(), )),