fallback to live feed if we can't get diffpatch
This commit is contained in:
parent
3cd5411d12
commit
a8e055d094
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)
|
||||
|
|
Loading…
Reference in New Issue