etcd: make max message size configurable

This commit is contained in:
Andras Banki-Horvath committed 2021-12-02 21:07:49 +01:00
1 parent 8d3fec35fe
commit 1ccc5e8014
5 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ func newEtcdBackend(ctx context.Context, cfg Config) (*db, error) {
DialTimeout: etcdConnectionTimeout,
Username: cfg.User,
Password: cfg.Pass,
MaxCallSendMsgSize: 16384*1024 - 1,
MaxCallSendMsgSize: cfg.MaxMsgSize,
}
if !cfg.DisableTLS {