Skip to content

Commit

Permalink
fix: updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Qin committed Mar 23, 2023
1 parent 13958c7 commit 22ae86e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ func main() {

runtime.GOMAXPROCS(runtime.NumCPU())

producer := nsqworker.NewNsqProducer(conf.Nsq.Addr, nsq.NewConfig())
producer := nsqworker.NewProducer(conf.Nsq.Addr, nsq.NewConfig())
logger.Info("nsq producer initialized.")
nsqConfig := nsqworker.NewNsqConsumerConfig(conf.Nsq.Addr, conf.Nsq.LookupdAddr, conf.Nsq.Topic, conf.Nsq.ConsumerCount)
consumer := nsqworker.NewNsqConsumer(nsqConfig, nsq.NewConfig())
nsqConfig := nsqworker.NewConfig(conf.Nsq.Addr, conf.Nsq.LookupdAddr, conf.Nsq.Topic, conf.Nsq.ConsumerCount)
consumer := nsqworker.NewConsumer(nsqConfig, nsq.NewConfig())
logger.Info("nsq consumer initialized.")

exitChan := make(chan struct{})
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
)

require (
github.com/astaxie/beego v1.12.1 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
github.com/astaxie/beego v1.12.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
)

0 comments on commit 22ae86e

Please sign in to comment.