Only update an IngressInfo if the StartedAt field is newer or equal to the one currently in storage (#897)

This is meant to ensure that we will not overwrite the state of an ingress that already reconnected to a different server on failure or timeout
This commit is contained in:
Benjamin Pracht
2022-08-09 19:07:56 -07:00
committed by GitHub
parent 4ec7e71b2d
commit 67d3f21122
5 changed files with 41 additions and 8 deletions
+1
View File
@@ -16,4 +16,5 @@ var (
ErrRoomUnlockFailed = errors.New("could not unlock room, lock token does not match")
ErrTrackNotFound = errors.New("track is not found")
ErrWebHookMissingAPIKey = errors.New("api_key is required to use webhooks")
ErrIngressOutOfDate = errors.New("trying to ovewrite an ingress with an older version")
)