Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Nov 15, 2024
1 parent 28d8eb5 commit ef0521f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ internal async Task OnReceivedMessageAsync(GrpcWorkerConnection connection, Mess
break;
default:
// if it wasn't recognized return bad request
await RespondBadRequestAsync(connection, message.RequestId, $"Unknown message type for message '{message}'.");
await RespondBadRequestAsync(connection, $"Unknown message type for message '{message}'.");
break;
};
}
private async ValueTask RespondBadRequestAsync(GrpcWorkerConnection connection, string requestId, string error)
private async ValueTask RespondBadRequestAsync(GrpcWorkerConnection connection, string error)
{
throw new RpcException(new Status(StatusCode.InvalidArgument, error));
}
Expand Down

0 comments on commit ef0521f

Please sign in to comment.