fix linting

This commit is contained in:
weboko 2023-01-31 01:07:57 +01:00
parent 05f2b86e15
commit 09df64ccc4
No known key found for this signature in database

View File

@ -1,13 +1,7 @@
import debug from "debug";
import { DecodedMessage } from "@waku/core";
import {
IEncoder,
IDecoder,
IDecodedMessage,
IProtoMessage,
IMessage,
} from "@waku/interfaces";
import { IEncoder, IDecoder, IDecodedMessage, IProtoMessage, IMessage } from "@waku/interfaces";
import { WakuMessage } from "@waku/proto";
import debug from "debug";
import { HandshakeResult, HandshakeStepResult } from "./handshake.js";
import { PayloadV2 } from "./payload.js";
@ -39,7 +33,11 @@ export class NoiseHandshakeEncoder implements IEncoder {
* @param hsStepResult the result of a step executed while performing the handshake process
* @param ephemeral makes messages ephemeral in the Waku network
*/
constructor(public contentTopic: string, private hsStepResult: HandshakeStepResult, public ephemeral: boolean = true) {}
constructor(
public contentTopic: string,
private hsStepResult: HandshakeStepResult,
public ephemeral: boolean = true
) {}
async toWire(message: IMessage): Promise<Uint8Array | undefined> {
return this.encode(message);