Skip to content

Commit 0f3b7ee

Browse files
committed
Fix order of payload tuple
1 parent c76bddf commit 0f3b7ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

RSocket.Core/RSocket.Receiver.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public async Task<T> ExecuteAsync(CancellationToken cancellation = default)
3535
return Disposable.Empty;
3636
});
3737

38-
var (metadata, data) = await observable.ToTask(cancellation);
39-
return Mapper((data, metadata));
38+
var value = await observable.ToTask(cancellation);
39+
return Mapper((value.data, value.metadata));
4040
}
4141

4242
public async Task<T> ExecuteAsync(T result, CancellationToken cancellation = default)
@@ -58,7 +58,6 @@ public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellation = d
5858
return observable
5959
.Select(value => Mapper((value.data, value.metadata)))
6060
.ToAsyncEnumerable()
61-
6261
.GetAsyncEnumerator(cancellation);
6362
}
6463
}

0 commit comments

Comments
 (0)