Open Aaronontheweb opened 8 months ago
So to be clear: not sure if this is an actual bug or not
I'm now wondering if this was a bone-headed mistake on my part and this is just the DivertTo
taking on the materialization value of the Source<T>
...
Version Information Version of Akka.NET? v1.5.16 Which Akka.NET Modules? Akka.Streams
Describe the bug
I answered a question on Discord earlier today about "why does my Sink type not work with my Source type when I am using
DivertTo
" and I found the answer accordingly, while working on a proof of concept:The issue in this case is that
DivertTo
has a hard-codedNotUsed
materialization value, so all of my other sinks I passed in had to use theMapMaterializationValue
function to discard theirTask
materializations and convert it toNotUsed
.Expected behavior
I'd expect any
Source<T, TMat>
to work just fine inside aDivertTo
without having to callMapMaterializedValue
first - but there might be a very good reason from a graph construction standpoint whyDivertTo
is done this way - I just don't know what that might be off the top of my head.