refactor(microservices): remove 3 unnecessary await

This commit is contained in:
Guilherme Ruiz
2021-12-17 10:31:29 +11:00
parent 01daeb441f
commit 58950a0dee
2 changed files with 3 additions and 3 deletions

View File

@@ -141,7 +141,7 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
correlationId: string,
): (data: any) => Promise<RecordMetadata[]> {
return async (data: any) =>
await this.sendMessage(data, replyTopic, replyPartition, correlationId);
this.sendMessage(data, replyTopic, replyPartition, correlationId);
}
public async handleMessage(payload: EachMessagePayload) {
@@ -207,7 +207,7 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
},
this.options.send || {},
);
return await this.producer.send(replyMessage);
return this.producer.send(replyMessage);
}
public assignIsDisposedHeader(