Skip to content

Commit

Permalink
Update packages/client/src/MessagePickupRepositoryClient.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ariel Gentile <[email protected]>
  • Loading branch information
gabrielmatau79 and genaris authored Nov 13, 2024
1 parent 3182577 commit 328f952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/MessagePickupRepositoryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ export class MessagePickupRepositoryClient implements MessagePickupRepository {
try {
const client = this.checkClient()

const connectionInfoCallback = this.setConnectionInfoCallback
? await this.setConnectionInfoCallback(params.connectionId)
const connectionInfo = this.connectionInfoCallback
? await this.connectionInfoCallback(params.connectionId)
: undefined

const maxReceiveBytes = connectionInfoCallback?.maxReceiveBytes
const maxReceiveBytes = connectionInfo?.maxReceiveBytes

// Add limitBytes to params if maxReceiveBytes is set
if (maxReceiveBytes) {
Expand Down

0 comments on commit 328f952

Please sign in to comment.