feat(gateway-reset): add director mock

This commit is contained in:
bandl 2021-10-16 22:53:11 +08:00
parent 43392236b6
commit ebdc5bd5b0
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
func GetDirectorByServiceHash() StreamDirector {
return func(ctx context.Context, fullMethodName string) (context.Context, *grpc.ClientConn, error) {
// TODO hash, mock 直接转发到 storage dev 上
cli, err := grpc.DialContext(ctx, "127.0.0.1:5890", grpc.WithInsecure(), grpc.ForceCodec(codec.Codec()))
cli, err := grpc.DialContext(ctx, "127.0.0.1:5890", grpc.WithInsecure(), grpc.WithDefaultCallOptions(grpc.ForceCodec(codec.Codec())))
return ctx, cli, err
}
}