Skip to content

Commit

Permalink
feat: increase some of hard coded timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
erayarslan committed May 29, 2024
1 parent 2ff7f2f commit cd2066c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions couchbase/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (s *client) GetVBucketSeqNos() (*wrapper.ConcurrentSwissMap[uint16, uint64]
for j := 0; j < collectionIDSize; j++ {
eg.Go(func(i int, j int) func() error {
return func() error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

opm := NewAsyncOp(ctx)
Expand Down Expand Up @@ -485,7 +485,7 @@ func (s *client) GetDcpAgentConfigSnapshot() (*gocbcore.ConfigSnapshot, error) {
}

func (s *client) GetFailoverLogs(vbID uint16) ([]gocbcore.FailoverEntry, error) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

opm := NewAsyncOp(ctx)
Expand Down Expand Up @@ -537,7 +537,7 @@ func (s *client) openStreamWithRollback(vbID uint16,
}
}

ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

opm := NewAsyncOp(ctx)
Expand Down Expand Up @@ -580,7 +580,7 @@ func (s *client) OpenStream(
offset *models.Offset,
observer Observer,
) error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

opm := NewAsyncOp(ctx)
Expand Down Expand Up @@ -643,7 +643,7 @@ func (s *client) OpenStream(
}

func (s *client) CloseStream(vbID uint16) error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

opm := NewAsyncOp(ctx)
Expand Down

0 comments on commit cd2066c

Please sign in to comment.