Skip to content

Commit

Permalink
update dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Sep 19, 2019
1 parent 902780e commit 1dbbe6c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
[[constraint]]
name = "github.com/cosmos/cosmos-sdk"
source = "github.com/binance-chain/bnc-cosmos-sdk"
version = "=v0.25.0-binance.19"
branch = "blockhash"
[[prune.project]]
name = "github.com/zondax/hid"
unused-packages = false
Expand Down
10 changes: 10 additions & 0 deletions app/pub/publisher_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ func (publisher *KafkaMarketDataPublisher) newProducers() (config *sarama.Config
return
}
}
if Cfg.PublishBlock{
if _, ok := publisher.producers[Cfg.BlockTopic]; !ok {
publisher.producers[Cfg.BlockTopic], err =
publisher.connectWithRetry(strings.Split(Cfg.BlockKafka, KafkaBrokerSep), config)
}
if err != nil {
Logger.Error("failed to create blocks producer", "err", err)
return
}
}
return
}

Expand Down

0 comments on commit 1dbbe6c

Please sign in to comment.