Use tomb v2, update deps, fix hang on stale connection

- Use tomb v2 to properly spawn and reap goroutines (hopefully)
- Update deps
- Fix hang on stale connection due to improper goroutine management
This commit is contained in:
eleksir
2024-11-16 10:41:00 +03:00
parent 678d830f8c
commit fb19f8056a
345 changed files with 14486 additions and 7346 deletions

View File

@@ -5,7 +5,7 @@ import (
"os"
"github.com/eleksir/go-xmpp"
"gopkg.in/tomb.v1"
"gopkg.in/tomb.v2"
)
// MyConfig прототип структурки с конфигом.