Merge pull request #46 from mdr0id/remove_go_routine_db_write
Remove go routine that causes threading issues when writing to local db
This commit is contained in:
commit
f2aacce0ca
|
@ -157,8 +157,7 @@ func main() {
|
||||||
switch string(topic) {
|
switch string(topic) {
|
||||||
|
|
||||||
case opts.zmqTopic:
|
case opts.zmqTopic:
|
||||||
// there's an implicit mutex here
|
handleBlock(db, sequence, body)
|
||||||
go handleBlock(db, sequence, body)
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
log.WithFields(logrus.Fields{
|
log.WithFields(logrus.Fields{
|
||||||
|
|
Loading…
Reference in New Issue