mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Add missing whitespaces for Zeek coding style
This commit is contained in:
parent
59d114005e
commit
83d7d2da4c
7 changed files with 21 additions and 23 deletions
|
@ -22,13 +22,14 @@ public:
|
|||
|
||||
explicit Manager(Impl* ptr) : pimpl(ptr)
|
||||
{
|
||||
//nop
|
||||
}
|
||||
|
||||
Manager(const Manager&) = delete;
|
||||
|
||||
Manager& operator=(const Manager&) = delete;
|
||||
|
||||
virtual ~Manager();
|
||||
|
||||
/**
|
||||
* @returns a counter metric family. Creates the family lazily if necessary.
|
||||
* @param prefix The prefix (namespace) this family belongs to.
|
||||
|
@ -255,14 +256,14 @@ private:
|
|||
template <class F>
|
||||
static void withLabelNames(Span<const LabelView> xs, F continuation)
|
||||
{
|
||||
if (xs.size() <= 10) {
|
||||
if ( xs.size() <= 10 ) {
|
||||
std::string_view buf[10];
|
||||
for (size_t index = 0; index < xs.size(); ++index)
|
||||
for ( size_t index = 0; index < xs.size(); ++index )
|
||||
buf[index] = xs[index].first;
|
||||
return continuation(Span{buf, xs.size()});
|
||||
} else {
|
||||
std::vector<std::string_view> buf;
|
||||
for (auto x : xs)
|
||||
for ( auto x : xs )
|
||||
buf.emplace_back(x.first, x.second);
|
||||
return continuation(Span{buf});
|
||||
}
|
||||
|
@ -275,6 +276,8 @@ private:
|
|||
|
||||
namespace zeek {
|
||||
|
||||
// @note for technically reasons (CAF dependency), this variable gets
|
||||
// initialized in broker/Manager.cc.
|
||||
extern telemetry::Manager* telemetry_mgr;
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue