mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-17 06:47:29 +00:00
fix: remove ephemeral
argument for Decoder
This commit is contained in:
parent
9cd1759a06
commit
84c477984f
@ -100,7 +100,7 @@ export function createEncoder(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Decoder implements IDecoder<DecodedMessage> {
|
export class Decoder implements IDecoder<DecodedMessage> {
|
||||||
constructor(public contentTopic: string, public ephemeral: boolean = false) {}
|
constructor(public contentTopic: string) {}
|
||||||
|
|
||||||
fromWireToProtoObj(bytes: Uint8Array): Promise<ProtoMessage | undefined> {
|
fromWireToProtoObj(bytes: Uint8Array): Promise<ProtoMessage | undefined> {
|
||||||
const protoMessage = proto.WakuMessage.decode(bytes);
|
const protoMessage = proto.WakuMessage.decode(bytes);
|
||||||
@ -135,9 +135,6 @@ export class Decoder implements IDecoder<DecodedMessage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createDecoder(
|
export function createDecoder(contentTopic: string): Decoder {
|
||||||
contentTopic: string,
|
return new Decoder(contentTopic);
|
||||||
ephemeral = false
|
|
||||||
): Decoder {
|
|
||||||
return new Decoder(contentTopic, ephemeral);
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user