Skip to content

Commit

Permalink
feat(rosenet-relay): add maxReservations config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed Apr 17, 2024
1 parent 768f5af commit 2cdb68b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/rosenet-relay/lib/createRoseNetRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const createRoseNetRelay = async ({
services: {
circuitRelay: circuitRelayServer({
reservations: {
maxReservations: config.maxReservations,
defaultDurationLimit: 0,
defaultDataLimit: 0n,
applyDefaultLimit: false,
Expand Down
1 change: 1 addition & 0 deletions packages/rosenet-relay/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export interface RoseNetRelayConfig {
privateKey: string;
logger: AbstractLogger;
whitelist: string[];
maxReservations?: number;
}

0 comments on commit 2cdb68b

Please sign in to comment.