diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-15 00:31:41 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-15 00:31:41 +0300 |
| commit | 3fa0da38c9bde8f86bf6fd885371628808bd8555 (patch) | |
| tree | 76ea673390a4f896cd63db690d6219ad581fbaf7 /sub/subController.go | |
| parent | 8eb122573439055f1f049feadc9a088d4d986f7d (diff) | |
Add timeouts and delays to backup sends
Add rate-limit friendly delays and context timeouts when sending backups via Telegram. Iterate admin IDs with index to sleep 1s between sends; add 30s context.WithTimeout for each SendDocument call and defer file.Close() for opened files; insert a 500ms pause between sending DB and config files. These changes improve resource cleanup and reduce chance of Telegram rate-limit/timeout failures.
Diffstat (limited to 'sub/subController.go')
0 files changed, 0 insertions, 0 deletions
