Skip to content

Commit

Permalink
Fix a small bug with my latest fix to RootContextDecorator (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnlef committed Oct 23, 2022
1 parent 8f5c237 commit edc824d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Proto.Actor/Context/RootContextDecorator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ public virtual Task<T> RequestAsync<T>(PID target, object message, CancellationT

public virtual Task PoisonAsync(PID pid) => _context.PoisonAsync(pid);

public IRootContext WithSenderMiddleware(params Func<Sender, Sender>[] middleware) =>
public IRootContext WithSenderMiddleware(params Func<Sender, Sender>[] middleware)
{
_context = _context.WithSenderMiddleware(middleware);
return this;
}

public virtual PID? Parent => null;
public virtual PID Self => null!;
Expand Down

0 comments on commit edc824d

Please sign in to comment.