And switch to std::source_location.
Upcoming seastar update will deprecate its compatibility layer.
The patch is
for f in $(git grep -l 'seastar::compat::source_location'); do
sed -e 's/seastar::compat::source_location/std::source_location/g' -i $f;
done
and removal of few header includes.
Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
Closes scylladb/scylladb#27309
21 lines
411 B
C++
21 lines
411 B
C++
// Copyright (C) 2024-present ScyllaDB
|
|
// SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/lowres_clock.hh>
|
|
#include <seastar/util/std-compat.hh>
|
|
|
|
#include "seastarx.hh"
|
|
|
|
#include <optional>
|
|
|
|
namespace service {
|
|
|
|
struct raft_timeout {
|
|
std::source_location loc = std::source_location::current();
|
|
std::optional<lowres_clock::time_point> value;
|
|
};
|
|
|
|
}
|