distributor: timeout for XMPP connection setup from 1s to 10s

This commit is contained in:
Geno 2021-09-15 20:47:29 +02:00
parent 47b46549ee
commit 42e8289f2f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (s *XMPPService) Run(dbus *distributor.DBus, store *storage.Storage) error
s.dbus = dbus
s.store = store
j := jid.MustParse(s.Login)
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Second))
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Second*10))
defer cancel()
if s.session, err = xmpp.DialClientSession(
ctx, j,