-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CS0618] StreamRefsSpec
Sink.ActorRef<TIn>(IActorRef, object)
is obsolete
#6691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes
@@ -94,7 +94,7 @@ protected override bool Receive(object message) | |||
* We write out code, knowing that the other side will stream the data into it. | |||
* For them it's a Sink; for us it's a Source. | |||
*/ | |||
var sink = StreamRefs.SinkRef<string>().To(Sink.ActorRef<string>(_probe, "<COMPLETE>")) | |||
var sink = StreamRefs.SinkRef<string>().To(Sink.ActorRef<string>(_probe, "<COMPLETE>", ex => new Status.Failure(ex))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into Sink<TIn, NotUsed> ActorRef<TIn>(IActorRef actorRef, object onCompleteMessage, Func<Exception, object> onFailureMessage)
@@ -109,7 +109,7 @@ protected override bool Receive(object message) | |||
{ | |||
var sink = StreamRefs.SinkRef<string>() | |||
.WithAttributes(StreamRefAttributes.CreateSubscriptionTimeout(TimeSpan.FromMilliseconds(500))) | |||
.To(Sink.ActorRef<string>(_probe, "<COMPLETE>")) | |||
.To(Sink.ActorRef<string>(_probe, "<COMPLETE>", ex => new Status.Failure(ex))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into Sink<TIn, NotUsed> ActorRef<TIn>(IActorRef actorRef, object onCompleteMessage, Func<Exception, object> onFailureMessage)
@@ -242,7 +242,7 @@ public void SourceRef_must_send_messages_via_remoting() | |||
_remoteActor.Tell("give"); | |||
var sourceRef = ExpectMsg<ISourceRef<string>>(); | |||
|
|||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>"), Materializer); | |||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>", ex => new Status.Failure(ex)), Materializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into Sink<TIn, NotUsed> ActorRef<TIn>(IActorRef actorRef, object onCompleteMessage, Func<Exception, object> onFailureMessage)
@@ -255,7 +255,7 @@ public void SourceRef_must_fail_when_remote_source_failed() | |||
_remoteActor.Tell("give-fail"); | |||
var sourceRef = ExpectMsg<ISourceRef<string>>(); | |||
|
|||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>"), Materializer); | |||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>", ex => new Status.Failure(ex)), Materializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into Sink<TIn, NotUsed> ActorRef<TIn>(IActorRef actorRef, object onCompleteMessage, Func<Exception, object> onFailureMessage)
@@ -269,7 +269,7 @@ public void SourceRef_must_complete_properly_when_remote_source_is_empty() | |||
_remoteActor.Tell("give-complete-asap"); | |||
var sourceRef = ExpectMsg<ISourceRef<string>>(); | |||
|
|||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>"), Materializer); | |||
sourceRef.Source.RunWith(Sink.ActorRef<string>(_probe.Ref, "<COMPLETE>", ex => new Status.Failure(ex)), Materializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into Sink<TIn, NotUsed> ActorRef<TIn>(IActorRef actorRef, object onCompleteMessage, Func<Exception, object> onFailureMessage)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):