mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-22 07:42:16 +00:00
24 lines
743 B
C++
24 lines
743 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_syn.hh"
|
|
|
|
auto fmt::formatter<gms::gossip_digest_syn>::format(const gms::gossip_digest_syn& syn, fmt::format_context& ctx) const
|
|
-> decltype(ctx.out()) {
|
|
auto out = ctx.out();
|
|
out = fmt::format_to(out, "cluster_id:{},partioner:{},group0_id:{},recovery_leader:{}",
|
|
syn._cluster_id, syn._partioner, syn._group0_id, syn._recovery_leader);
|
|
out = fmt::format_to(out, "digests:{{");
|
|
for (auto& d : syn._digests) {
|
|
out = fmt::format_to(out, "{} ", d);
|
|
}
|
|
return fmt::format_to(out, "}}");
|
|
}
|