mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 23:12:54 +00:00
Fix compilation with Rust versions < 1.50
The bool::then function was added in Rust 1.50. I'm still using 1.48 on my laptop. We haven't decided what Rust version we will require (https://github.com/zenithdb/zenith/issues/138), and I'll probably need to upgrade sooner or later, but this will do for now.
This commit is contained in:
@@ -245,7 +245,11 @@ fn walreceiver_main(
|
||||
reply_requested,
|
||||
);
|
||||
|
||||
reply_requested.then(|| timeline.get_last_valid_lsn())
|
||||
if reply_requested {
|
||||
Some(timeline.get_last_valid_lsn())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
_ => None,
|
||||
|
||||
Reference in New Issue
Block a user