fix: remove `ephemeral` argument for `Decoder`

This commit is contained in:
fryorcraken.eth 2022-12-05 15:54:12 +11:00
parent 9cd1759a06
commit 84c477984f
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 3 additions and 6 deletions

View File

@ -100,7 +100,7 @@ export function createEncoder(
}
export class Decoder implements IDecoder<DecodedMessage> {
constructor(public contentTopic: string, public ephemeral: boolean = false) {}
constructor(public contentTopic: string) {}
fromWireToProtoObj(bytes: Uint8Array): Promise<ProtoMessage | undefined> {
const protoMessage = proto.WakuMessage.decode(bytes);
@ -135,9 +135,6 @@ export class Decoder implements IDecoder<DecodedMessage> {
}
}
export function createDecoder(
contentTopic: string,
ephemeral = false
): Decoder {
return new Decoder(contentTopic, ephemeral);
export function createDecoder(contentTopic: string): Decoder {
return new Decoder(contentTopic);
}