Skip to content

Commit

Permalink
fix: should drop message when no any handler (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Aug 23, 2023
1 parent cfe091b commit c32523b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/GRPCServerImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ export default class GRPCServerImpl implements IAppCallbackServer {
};
const handler = this.findPubSubHandler(pubsubName, topic, metadata);
if (!handler) {
this.logger.warn('[layotto:server:grpc:onTopicEvent:warn] can\'t find the pubsub(%s) topic(%s) id(%s) handler, let server retry',
this.logger.warn('[layotto:server:grpc:onTopicEvent:warn] can\'t find the pubsub(%s) topic(%s) id(%s) handler, drop it',
pubsubName, topic, request.id);
res.setStatus(TopicEventResponse.TopicEventResponseStatus.RETRY);
res.setStatus(TopicEventResponse.TopicEventResponseStatus.DROP);
return callback(null, res);
}
try {
Expand Down

0 comments on commit c32523b

Please sign in to comment.