mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-01-10 10:39:20 -08:00
Merge pull request #186
* Updated the xmpp.NewClient call in the README.md example to pass the config parameter as a pointer (&config) instead of a value.
This commit is contained in:
@@ -124,7 +124,7 @@ func main() {
|
|||||||
router := xmpp.NewRouter()
|
router := xmpp.NewRouter()
|
||||||
router.HandleFunc("message", handleMessage)
|
router.HandleFunc("message", handleMessage)
|
||||||
|
|
||||||
client, err := xmpp.NewClient(config, router, errorHandler)
|
client, err := xmpp.NewClient(&config, router, errorHandler)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("%+v", err)
|
log.Fatalf("%+v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user