mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-24 00:32:15 +00:00
22 lines
605 B
C++
22 lines
605 B
C++
/*
|
|
*
|
|
* Modified by ScyllaDB
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.1 and Apache-2.0)
|
|
*/
|
|
|
|
#include "gms/gossip_digest_ack2.hh"
|
|
|
|
auto fmt::formatter<gms::gossip_digest_ack2>::format(const gms::gossip_digest_ack2& ack2, fmt::format_context& ctx) const
|
|
-> decltype(ctx.out()) {
|
|
auto out = ctx.out();
|
|
out = fmt::format_to(out, "endpoint_state:{{");
|
|
for (auto& [addr, state] : ack2.get_endpoint_state_map()) {
|
|
out = fmt::format_to(out, "[{}->{}]", addr, state);
|
|
}
|
|
return fmt::format_to(out, "}}");
|
|
}
|