mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-04 06:33:08 +00:00
fix lint
This commit is contained in:
parent
ba201fb560
commit
2ac286638d
@ -45,7 +45,7 @@ describe("js-noise: pairing object", () => {
|
|||||||
};
|
};
|
||||||
const responder = {
|
const responder = {
|
||||||
toSubscriptionIterator(decoder: IDecoder<NoiseHandshakeMessage>) {
|
toSubscriptionIterator(decoder: IDecoder<NoiseHandshakeMessage>) {
|
||||||
async function* iterator() {
|
async function* iterator(): AsyncIterator<NoiseHandshakeMessage> {
|
||||||
const msg = await pEvent(msgEmitter, decoder.contentTopic);
|
const msg = await pEvent(msgEmitter, decoder.contentTopic);
|
||||||
const decodedMessage = await decoder.fromProtoObj(PUBSUB_TOPIC, msg);
|
const decodedMessage = await decoder.fromProtoObj(PUBSUB_TOPIC, msg);
|
||||||
yield decodedMessage!;
|
yield decodedMessage!;
|
||||||
@ -57,8 +57,8 @@ describe("js-noise: pairing object", () => {
|
|||||||
// Do nothing. This is just a simulation
|
// Do nothing. This is just a simulation
|
||||||
console.debug("stopping subscription to", decoder.contentTopic);
|
console.debug("stopping subscription to", decoder.contentTopic);
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
} as any as IReceiver;
|
} as any as IReceiver;
|
||||||
// =================
|
// =================
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user