fallback to live feed if we can't get diffpatch

This commit is contained in:
filifa 2024-07-14 00:17:53 -05:00
parent 3cd5411d12
commit a8e055d094
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func extractPatches(diffPatch []byte) ([]jsonpatch.Patch, error) {
func updateFeed(feedResp []byte, gamePk, ts, updateId string) ([]byte, error) { func updateFeed(feedResp []byte, gamePk, ts, updateId string) ([]byte, error) {
diffPatchResp, err := statsapi.RequestDiffPatch(gamePk, ts, updateId) diffPatchResp, err := statsapi.RequestDiffPatch(gamePk, ts, updateId)
if err != nil { if err != nil {
return nil, err return statsapi.RequestFeed(gamePk)
} }
patches, err := extractPatches(diffPatchResp) patches, err := extractPatches(diffPatchResp)