mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-11-20 00:23:44 -08:00
Rename Options to Config
This commit is contained in:
@@ -99,11 +99,11 @@ func playSCURL(p *mpg123.Player, rawURL string) {
|
||||
}
|
||||
|
||||
func connectXmpp(jid string, password string, address string) (client *xmpp.Client, err error) {
|
||||
xmppOptions := xmpp.Options{Address: address,
|
||||
xmppConfig := xmpp.Config{Address: address,
|
||||
Jid: jid, Password: password, PacketLogger: os.Stdout, Insecure: true,
|
||||
Retry: 10}
|
||||
|
||||
if client, err = xmpp.NewClient(xmppOptions); err != nil {
|
||||
if client, err = xmpp.NewClient(xmppConfig); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user