go-xbus issueshttps://orus.io/xbus/go-xbus/-/issues2021-03-19T10:04:38Zhttps://orus.io/xbus/go-xbus/-/issues/17segmentation fault à l'arrêt du client.2021-03-19T10:04:38Zsteeve.chaillouxsegmentation fault à l'arrêt du client.L'API ne répond plus, est au status offline dans xbus, a l’arrêt le traceback suivant est fournis dans les logs :
```
{"level":"info","time":"2021-03-19T09:37:21Z","message":"Stopped serving Carnet at http://[::]:80"}
panic: runtime err...L'API ne répond plus, est au status offline dans xbus, a l’arrêt le traceback suivant est fournis dans les logs :
```
{"level":"info","time":"2021-03-19T09:37:21Z","message":"Stopped serving Carnet at http://[::]:80"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xc7f5ce]
goroutine 79 [running]:
github.com/nats-io/go-nats.(*Conn).close(0x0, 0x2, 0x1)
/builds/orus-io/gle/carnet-api/.gopath/pkg/mod/github.com/nats-io/go-nats@v1.7.0/nats.go:3389 +0x4e
github.com/nats-io/go-nats.(*Conn).Close(...)
/builds/orus-io/gle/carnet-api/.gopath/pkg/mod/github.com/nats-io/go-nats@v1.7.0/nats.go:3462
xbus.io/go-xbus/v3.(*Client).Close(...)
/builds/orus-io/gle/carnet-api/.gopath/pkg/mod/xbus.io/go-xbus/v3@v3.2.1/xbus.go:353
xbus.io/go-xbus/v3.(*Client).Startup.func3(0xc000876580, 0xc000644240, 0xc0006442a0, 0xc00087a001)
/builds/orus-io/gle/carnet-api/.gopath/pkg/mod/xbus.io/go-xbus/v3@v3.2.1/xbus.go:618 +0x77b
created by xbus.io/go-xbus/v3.(*Client).Startup
/builds/orus-io/gle/carnet-api/.gopath/pkg/mod/xbus.io/go-xbus/v3@v3.2.1/xbus.go:607 +0x285
```Christophe de VienneChristophe de Viennehttps://orus.io/xbus/go-xbus/-/issues/16go-xbus: handle async errors2021-01-07T07:58:35ZChristophe de Viennego-xbus: handle async errors*Created originally on Bitbucket by [cdevienne (Christophe de Vienne)](https://bitbucket.org/%7B2ee36603-6e28-434a-af2a-1c5ca86b2c76%7D/)*
Currently only xbusd sets a AsyncErrorCB on the nats connection.*Created originally on Bitbucket by [cdevienne (Christophe de Vienne)](https://bitbucket.org/%7B2ee36603-6e28-434a-af2a-1c5ca86b2c76%7D/)*
Currently only xbusd sets a AsyncErrorCB on the nats connection.https://orus.io/xbus/go-xbus/-/issues/12Optimize account lookup by fingerprint2020-01-28T20:55:36ZChristophe de VienneOptimize account lookup by fingerprint*Created originally on Bitbucket by [Houzéfa Abbasbhay](https://bitbucket.org/%7Bbcbc6b5b-7ef9-4393-8607-5fa4c0ce187e%7D/)*
In `control.go` > `AccountFind` function: computing fingerprints of every account in order to find the right one...*Created originally on Bitbucket by [Houzéfa Abbasbhay](https://bitbucket.org/%7Bbcbc6b5b-7ef9-4393-8607-5fa4c0ce187e%7D/)*
In `control.go` > `AccountFind` function: computing fingerprints of every account in order to find the right one when trying to accept / reject one seems inefficient; the fingerprint should be stored on accounts so commands don't have to recompute fingerprints.https://orus.io/xbus/go-xbus/-/issues/3Simplify changes to the default cobra command2020-01-28T20:55:36ZChristophe de VienneSimplify changes to the default cobra command*Created originally on Bitbucket by [Houzéfa Abbasbhay](https://bitbucket.org/%7Bbcbc6b5b-7ef9-4393-8607-5fa4c0ce187e%7D/)*
Hey,
[Not sure whether this is a good suggestion, but here it goes...]
I think it would be useful to have ...*Created originally on Bitbucket by [Houzéfa Abbasbhay](https://bitbucket.org/%7Bbcbc6b5b-7ef9-4393-8607-5fa4c0ce187e%7D/)*
Hey,
[Not sure whether this is a good suggestion, but here it goes...]
I think it would be useful to have ways of changing either information about the program embedding `go-xbus`, or the `RootCmd` command at least.
Currently, this is doable via:
```go
import xbusCmd "bitbucket.org/orus-io/go-xbus/cmd"
// Fiddle with the command declared by go-xbus.
xbusCmd.RootCmd.Use = "..."
xbusCmd.RootCmd.Short = "..."
xbusCmd.RootCmd.Long = "..."
```
I find that hacky and would prefer a "predefined" way.
Maybe some meta-data I can provide about my program...