Skip to content

Commit

Permalink
fix write from RTMR to solomon (#5857)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik authored Jun 24, 2024
1 parent 01bff86 commit b89687a
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,28 +98,6 @@ class TSolomonIODiscoveryTransformer : public TSyncTransformerBase {
}

auto status = OptimizeExpr(input, output, [this] (const TExprNode::TPtr& node, TExprContext& ctx) -> TExprNode::TPtr {
if (auto maybeWrite = TMaybeNode<TSoWrite>(node)) {
if (!maybeWrite.DataSink()) {
return node;
}
auto write = maybeWrite.Cast();

if (!EnsureArgsCount(write.Ref(), 5, ctx)) {
return {};
}

return Build<TSoWrite>(ctx, write.Pos())
.World(write.World())
.DataSink(write.DataSink())
.FreeArgs()
.Add<TCoAtom>()
.Value("")
.Build()
.Add(write.Arg(3))
.Build()
.Done().Ptr();
}

if (auto maybeRead = TMaybeNode<TSoRead>(node)) {
auto read = maybeRead.Cast();
if (read.DataSource().Category().Value() != SolomonProviderName) {
Expand Down

0 comments on commit b89687a

Please sign in to comment.