feat: ota

This commit is contained in:
zzw
2026-09-22 16:47:38 +08:00
parent fdf5825d83
commit 08b67dba70
26 changed files with 1033 additions and 178 deletions
+6 -1
View File
@@ -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,
})),