revert distracting changes

This commit is contained in:
fryorcraken 2025-07-21 12:26:51 +10:00
parent 3bb5a4931f
commit ec8ded9c6a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 7 additions and 12 deletions

View File

@ -5,8 +5,7 @@ import type {
IMessage,
IProtoMessage,
IRateLimitProof,
IRoutingInfo,
PubsubTopic
IRoutingInfo
} from "@waku/interfaces";
import { Logger } from "@waku/utils";
@ -29,10 +28,6 @@ export class RLNEncoder implements IEncoder {
this.idSecretHash = identityCredential.IDSecretHash;
}
public get pubsubTopic(): PubsubTopic {
return this.encoder.pubsubTopic;
}
public async toWire(message: IMessage): Promise<Uint8Array | undefined> {
message.rateLimitProof = await this.generateProof(message);
log.info("Proof generated", message.rateLimitProof);
@ -61,6 +56,10 @@ export class RLNEncoder implements IEncoder {
);
}
public get pubsubTopic(): string {
return this.encoder.pubsubTopic;
}
public get routingInfo(): IRoutingInfo {
return this.encoder.routingInfo;
}
@ -98,7 +97,7 @@ export class RLNDecoder<T extends IDecodedMessage>
private readonly decoder: IDecoder<T>
) {}
public get pubsubTopic(): PubsubTopic {
public get pubsubTopic(): string {
return this.decoder.pubsubTopic;
}

View File

@ -448,11 +448,7 @@ export class ServiceNode {
if (body) options.body = JSON.stringify(body);
const response = await fetch(`${this.httpUrl}${endpoint}`, options);
log.info(
`Received REST Response: `,
response.status,
response.statusText
);
log.info(`Received REST Response: `, response.status);
return await processResponse(response);
} catch (error) {
log.error(`${this.httpUrl} failed with error:`, error);