fallback to live feed if we can't get diffpatch
This commit is contained in:
2
main.go
2
main.go
@@ -78,7 +78,7 @@ func extractPatches(diffPatch []byte) ([]jsonpatch.Patch, error) {
|
||||
func updateFeed(feedResp []byte, gamePk, ts, updateId string) ([]byte, error) {
|
||||
diffPatchResp, err := statsapi.RequestDiffPatch(gamePk, ts, updateId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return statsapi.RequestFeed(gamePk)
|
||||
}
|
||||
|
||||
patches, err := extractPatches(diffPatchResp)
|
||||
|
||||
Reference in New Issue
Block a user