feat: enable TcpNoDelay (#1470)

This commit is contained in:
Tanguy 2023-07-15 16:41:26 +02:00 committed by GitHub
parent 1d3410c7bd
commit 08f3bba334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ proc build*(builder: WakuNodeBuilder): Result[WakuNode, string] =
privKey = builder.nodekey,
address = builder.netConfig.get().hostAddress,
wsAddress = builder.netConfig.get().wsHostAddress,
transportFlags = {ServerFlags.ReuseAddr},
transportFlags = {ServerFlags.ReuseAddr, ServerFlags.TcpNoDelay},
rng = rng,
maxConnections = builder.switchMaxConnections.get(builders.MaxConnections),
wssEnabled = builder.netConfig.get().wssEnabled,