Skip to content

Commit

Permalink
remove virtual method in generic classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Deliay committed Jan 11, 2024
1 parent 51c652e commit 9db2c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mikibot.Analyze/Generic/MiraiGroupMessageProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ public abstract class MiraiGroupMessageProcessor<T>(IMiraiService miraiService,
AllowSynchronousContinuations = false,
});

protected virtual void FilterMessage(GroupMessageReceiver message)
private void FilterMessage(GroupMessageReceiver message)
{
_ = messageQueue.Writer.WriteAsync(message);
}

protected virtual async ValueTask Dequeue(CancellationToken token)
private async ValueTask Dequeue(CancellationToken token)
{
await foreach (var msg in this.messageQueue.Reader.ReadAllAsync(token))
{
await Process(msg);
await Process(msg, token);
}
}

Expand Down

0 comments on commit 9db2c3e

Please sign in to comment.