Skip to content

Commit ef0395c

Browse files
committed
ghr
1 parent 8fddd5e commit ef0395c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

replay.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Replay(ctx context.Context, fn ReplayHandler, opts ...ro.Options) error {
6767
cancel()
6868
return fmt.Errorf("projector: failed to subscribe to subject %s: %w", subject, err)
6969
}
70-
num, _, err := sub.MaxPending()
70+
num, err := sub.InitialConsumerPending()
7171
if err != nil {
7272
cancel()
7373
return fmt.Errorf("projector: failed to get max pending for subject %s: %w", subject, err)
@@ -82,7 +82,7 @@ func Replay(ctx context.Context, fn ReplayHandler, opts ...ro.Options) error {
8282
defer sub.Unsubscribe()
8383

8484
go func() {
85-
n := 0
85+
n := uint64(0)
8686
for {
8787
select {
8888
case <-ctx.Done():

0 commit comments

Comments
 (0)