feat: ota
This commit is contained in:
@@ -26,7 +26,12 @@ func Nacos(conf zrpc.RpcClientConf) zrpc.Client {
|
||||
return zrpc.MustNewClient(cliConf,
|
||||
zrpc.WithDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
|
||||
zrpc.WithDialOption(grpc.WithUnaryInterceptor(request.UserClientInterceptor)),
|
||||
zrpc.WithDialOption(grpc.WithDefaultCallOptions(grpc.WaitForReady(true))),
|
||||
zrpc.WithDialOption(grpc.WithDefaultCallOptions(
|
||||
grpc.WaitForReady(true),
|
||||
// 上传文件经 base64 后可达 ~170MB+,需大于默认 4MB
|
||||
grpc.MaxCallRecvMsgSize(256<<20),
|
||||
grpc.MaxCallSendMsgSize(256<<20),
|
||||
)),
|
||||
zrpc.WithDialOption(grpc.WithConnectParams(grpc.ConnectParams{
|
||||
MinConnectTimeout: 2 * time.Second,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user