add dep management

This commit is contained in:
fengzhiqiang
2019-01-08 10:50:41 +08:00
parent c7810090da
commit 58ccc8c9a8
439 changed files with 235757 additions and 6 deletions
+5 -3
View File
@@ -72,12 +72,14 @@ func (c *Client) readPump(topic string) {
sigchan := make(chan os.Signal, 1)
signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM)
group := uuid.Must(uuid.NewV4())
// group, err := uuid.Must(uuid.NewV4())
group := uuid.NewV4()
log.WithFields(log.Fields{
"topic": topic,
"bootstrap servers": *bootstrapServers,
"partition": partition,
"group": group}).Info("create kafka client")
"partition": *partition,
"group": group}).Info("creating kafka client ... ")
reader := kafka.NewReader(kafka.ReaderConfig{
Brokers: strings.Split(*bootstrapServers, ","),