Fix read replication stream restart position

This commit is contained in:
Ben Johnson
2022-06-15 14:04:37 -06:00
parent 46597ab22f
commit c53a09c124
4 changed files with 110 additions and 101 deletions

View File

@@ -48,6 +48,7 @@ func (c *Client) Stream(ctx context.Context, pos litestream.Pos) (litestream.Str
if !pos.IsZero() {
q.Set("generation", pos.Generation)
q.Set("index", litestream.FormatIndex(pos.Index))
q.Set("offset", litestream.FormatOffset(pos.Offset))
}
// Strip off everything but the scheme & host.