// Unary intercepts unary RPC requests
Unary intercepts unary RPC requests
// Unary intercepts unary RPC requests
func (interceptor *sqalxInterceptor) Unary() grpc.UnaryServerInterceptor {
	return func(
		ctx context.Context,
		req interface{},
		info *grpc.UnaryServerInfo,
		handler grpc.UnaryHandler,
	) (interface{}, error) {
		newCtx := context.WithValue(ctx, "SqalxNode", rootSqalxNode)
		return handler(newCtx, req)
	}
}
func ( interceptor * sqalxInterceptor ) Unary ( ) grpc . UnaryServerInterceptor { return func ( ctx context . Context , req interface { } , info * grpc . UnaryServerInfo , handler grpc . UnaryHandler , ) ( interface { } , error ) { newCtx := context . WithValue ( ctx , " " , rootSqalxNode ) return handler ( newCtx , req ) } }
Unary intercepts unary RPC requests
Unary intercepts unary RPC requests