Remove deprecated call

This commit is contained in:
Franck Royer 2021-07-05 15:50:45 +10:00
parent 7c47a6b215
commit c3b726cb99
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -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));
} }
/** /**