Review comments

This commit is contained in:
Kegan Dougal 2023-09-14 09:32:20 +01:00
parent e4cedaabcd
commit 806639a92c
2 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20
go-version: "1.20"
- name: Build
run: go build ./cmd/syncv3
@ -130,7 +130,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20
go-version: "1.20"
- name: Build
run: go build ./cmd/syncv3
@ -260,7 +260,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20
go-version: "1.20"
# E2E tests with ${{env.PREV_VERSION}}
- uses: actions/checkout@v3

View File

@ -238,6 +238,7 @@ func (a *Accumulator) Initialise(roomID string, state []json.RawMessage) (Initia
Str("room_id", roomID).
Int("len_state", len(events)).
Msg(errMsg)
// the HS gave us bad data so there's no point retrying => return DataError
return internal.NewDataError(errMsg)
}
@ -389,6 +390,7 @@ func (a *Accumulator) Accumulate(txn *sqlx.Tx, userID, roomID string, prevBatch
})
sentry.CaptureMessage(msg)
})
// the HS gave us bad data so there's no point retrying
// by not returning an error, we are telling the poller it is fine to not retry this request.
return 0, nil, nil
}