@enbox/agent 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,8 +123,9 @@ export async function fetchRemoteMessages({ did, dwnUrl, delegateDid, protocol,
123
123
  }
124
124
  }
125
125
 
126
- // Fetch messages in parallel with bounded concurrency.
127
- const CONCURRENCY = 10;
126
+ // Fetch messages in parallel with bounded concurrency. Keep this low
127
+ // to avoid bursting through the remote server's rate limits during sync.
128
+ const CONCURRENCY = 4;
128
129
  let cursor = 0;
129
130
 
130
131
  while (cursor < messageCids.length) {
package/src/utils.ts CHANGED
@@ -168,4 +168,4 @@ export function concatenateUrl(baseUrl: string, path: string): string {
168
168
  }
169
169
 
170
170
  return `${baseUrl}/${path}`;
171
- }
171
+ }