dragonboat-example icon indicating copy to clipboard operation
dragonboat-example copied to clipboard

Some typo and bug fix

Open peacedog123 opened this issue 1 year ago • 0 comments

Fix inconsistency of flags in multigroup example Fix NodeHost.Stop() called twice problem

  1. In the README.md The command has changed to ./example-multigroup -replicaid 1, so here change the code to make it consistent between code and README.md file.

  2. When we input exit in the console, we will hit NodeHost.Stop() called twice panic like below:

exit
panic: NodeHost.Stop called twice

goroutine 1 [running]:
github.com/lni/dragonboat/v4.(*NodeHost).Close(0xc0001bea80)
        /<home-dir>/go/pkg/mod/github.com/lni/dragonboat/[email protected]/nodehost.go:390 +0x9d0
main.main()
        /<git-repo>/dragonboat-example/multigroup/main.go:195 +0x88c

peacedog123 avatar Aug 10 '24 08:08 peacedog123