Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Update concurrent calls on exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Nov 29, 2022
1 parent ecc494b commit 0b34e2b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/internal/connector/exchange/exchange_data_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ var (
)

const (
collectionChannelBufferSize = 1000
numberOfRetries = 4
urlPrefetchChannelBufferSize = 50
collectionChannelBufferSize = 2
numberOfRetries = 4

// Outlooks expects max 4 concurrent requests
// https://learn.microsoft.com/en-us/graph/throttling-limits#outlook-service-limits
urlPrefetchChannelBufferSize = 2
)

// Collection implements the interface from data.Collection
Expand Down

0 comments on commit 0b34e2b

Please sign in to comment.