working commit
This commit is contained in:
@@ -86,12 +86,10 @@ func (svc *Service) Run() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
interceptors := []grpc.UnaryServerInterceptor{
|
||||
svc.accessInterceptor,
|
||||
svc.logInterceptor,
|
||||
}
|
||||
|
||||
gsrvOpts := []grpc.ServerOption{
|
||||
grpc.Creds(tlsCredentials),
|
||||
grpc.ChainUnaryInterceptor(interceptors...),
|
||||
@@ -114,7 +112,6 @@ func (svc *Service) accessInterceptor(ctx context.Context, req any, info *grpc.U
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
addressEnabled, _ := svc.nacl.AddressIsEnabled(host)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user