move auth interceptor into serverinterceptors

This commit is contained in:
kevin
2020-08-11 13:47:22 +08:00
parent 89019a0b72
commit 95226762ba
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
package internal
package serverinterceptors
import (
"context"

View File

@@ -117,8 +117,8 @@ func setupInterceptors(server internal.Server, c RpcServerConf, metrics *stat.Me
return err
}
server.AddStreamInterceptors(internal.StreamAuthorizeInterceptor(authenticator))
server.AddUnaryInterceptors(internal.UnaryAuthorizeInterceptor(authenticator))
server.AddStreamInterceptors(serverinterceptors.StreamAuthorizeInterceptor(authenticator))
server.AddUnaryInterceptors(serverinterceptors.UnaryAuthorizeInterceptor(authenticator))
}
return nil