etcd: fix int overflow

goxc fails with:

Error: database/etcddb/database.go:17:25: cannot use 2048 * 1024 * 1024 (untyped int constant 2147483648) as int value in struct literal (overflows)
This commit is contained in:
André Roth
2024-07-23 16:26:59 +02:00
parent 59bf4501e8
commit 5b74f82edb

View File

@@ -14,8 +14,8 @@ func internalOpen(url string) (*clientv3.Client, error) {
cfg := clientv3.Config{
Endpoints: []string{url},
DialTimeout: 30 * time.Second,
MaxCallSendMsgSize: 2048 * 1024 * 1024,
MaxCallRecvMsgSize: 2048 * 1024 * 1024,
MaxCallSendMsgSize: (2048 * 1024 * 1024) - 1,
MaxCallRecvMsgSize: (2048 * 1024 * 1024) - 1,
DialKeepAliveTimeout: 7200 * time.Second,
}