4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 00:39:24 +00:00

Add better error handling on Zulip (#1589)

* zulip: Treat unknown errors with a 10-second backoff.

An unknown error (including an unauthorized error) would fall through
with no calls to time.Sleep, resulting in hammering the server as
quickly as possible.

Add a 10-second sleep in the default error case.  The heartbeat is
left with no explicit sleep, but all other codepaths now contain one.

* version: Move version information into a separate package.

This will allow it to be accessed by other sections of the code.

* zulip: Use the matterbridge version in the user-agent.

Co-authored-by: Wim <wim@42.be>
This commit is contained in:
Alex Vandiver
2021-10-23 14:46:27 -07:00
committed by GitHub
parent b7d73077e5
commit e3ffbcadd8
7 changed files with 20 additions and 13 deletions

6
version/version.go Normal file
View File

@ -0,0 +1,6 @@
package version
var (
Release = "1.23.1-dev"
GitHash string
)