mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user