func()

in tcc/grpc/service/service.go [76:92]


func (b *GrpcBusinessService2) Remoting(ctx context.Context, params *pb.Params) (*anypb.Any, error) {
	log.Infof("Remoting be called")
	anyFalse, err := anypb.New(wrapperspb.Bool(false))
	if err != nil {
		return nil, err
	}

	res, err := b.Business2.Prepare(ctx, params)
	if err != nil {
		return anyFalse, err
	}
	AnyBool, err := anypb.New(wrapperspb.Bool(res.(bool)))
	if err != nil {
		return nil, err
	}
	return AnyBool, nil
}