mirror of https://github.com/waku-org/js-waku.git
Remove deprecated call
This commit is contained in:
parent
7c47a6b215
commit
c3b726cb99
|
@ -114,7 +114,7 @@ export class WakuRelay extends Gossipsub {
|
||||||
*/
|
*/
|
||||||
public async send(message: WakuMessage): Promise<void> {
|
public async send(message: WakuMessage): Promise<void> {
|
||||||
const msg = message.encode();
|
const msg = message.encode();
|
||||||
await super.publish(this.pubsubTopic, new Buffer(msg));
|
await super.publish(this.pubsubTopic, Buffer.from(msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue