193
}
194
195
>
func (i *historyIterator) readHistory(ctx context.Context, firstEventID int64) ([]*historypb.History, error) {
history_iterator.go
196
>
req := &persistence.ReadHistoryBranchRequest{
197
>
BranchToken: i.request.BranchToken,
198
>
MinEventID: firstEventID,
199
>
MaxEventID: common.EndEventID,
200
>
PageSize: i.historyPageSize,
201
>
ShardID: i.request.ShardID,
202
>
}
203
>
historyBatches, _, _, err := persistence.ReadFullPageEventsByBatch(ctx, i.executionManager, req)
204
>
return historyBatches, err
205
>
}
206
207
// reset resets iterator to a certain state given its encoded representation