mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
Seastar deprecated default-constructing input_stream and output_stream (they are useless in that state), and also deprecated move-assigning them after the fact. Fix by wrapping both fields in std::optional, and using emplace() to construct them in-place once the connected socket is available. It would be nicer to make connect() a static method that returns a connection, but that's a larger change. Closes scylladb/scylladb#29627