mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
27 lines
747 B
C++
27 lines
747 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_ack.hh"
|
|
|
|
auto fmt::formatter<gms::gossip_digest_ack>::format(const gms::gossip_digest_ack& ack, fmt::format_context& ctx) const
|
|
-> decltype(ctx.out()) {
|
|
auto out = ctx.out();
|
|
out = fmt::format_to(out, "digests:{{");
|
|
for (auto& d : ack._digests) {
|
|
out = fmt::format_to(out, "{} ", d);
|
|
}
|
|
out = fmt::format_to(out, "}} ");
|
|
out = fmt::format_to(out, "endpoint_state:{{");
|
|
for (auto& d : ack._map) {
|
|
out = fmt::format_to(out, "[{}->{}]", d.first, d.second);
|
|
}
|
|
return fmt::format_to(out, "}}");
|
|
}
|