Skip to content

Commit

Permalink
fix: use "limited" instead of "transient" (#272)
Browse files Browse the repository at this point in the history
In the upcoming [email protected] release "transient" will change to
"limited" so use the newer terminology.

Temporarily uses both config keys to ensure backwards compatibility.
  • Loading branch information
achingbrain authored Aug 1, 2024
1 parent 1cb0a63 commit d43c177
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/libp2p-daemon-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export class Server implements Libp2pServer {

log('openStream - open stream for protocol %s', proto)
const stream = await connection.newStream(proto, {
runOnTransientConnection: true
runOnTransientConnection: true,
// @ts-expect-error this has not been released yet
runOnLimitedConnection: true
})

return {
Expand Down Expand Up @@ -192,7 +194,9 @@ export class Server implements Libp2pServer {
}
})
}, {
runOnTransientConnection: true
runOnTransientConnection: true,
// @ts-expect-error this has not been released yet
runOnLimitedConnection: true
})
}

Expand Down

0 comments on commit d43c177

Please sign in to comment.