rename optimistically to preemptively (#1536)

This commit is contained in:
Danish Arora 2023-09-06 09:36:17 +05:30 committed by GitHub
parent 2cf4a58f62
commit 6d81d6ab0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export class StreamManager {
private handlePeerUpdateStreamPool = (evt: CustomEvent<PeerUpdate>): void => {
const peer = evt.detail.peer;
if (peer.protocols.includes(this.multicodec)) {
this.log(`Optimistically opening a stream to ${peer.id.toString()}`);
this.log(`Preemptively opening a stream to ${peer.id.toString()}`);
this.prepareNewStream(peer);
}
};