Browse Source

add queue.buffering config.

master
Savorboard 7 years ago
parent
commit
095d42e006
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/DotNetCore.CAP.Kafka/CAP.KafkaOptions.cs

+ 2
- 0
src/DotNetCore.CAP.Kafka/CAP.KafkaOptions.cs View File

@@ -44,6 +44,8 @@ namespace DotNetCore.CAP
{
MainConfig.Add("bootstrap.servers", Servers);
}
MainConfig["queue.buffering.max.ms"] = "10";
MainConfig["socket.blocking.max.ms"] = "10";
MainConfig["enable.auto.commit"] = "false";
return MainConfig.AsEnumerable();
}


Loading…
Cancel
Save