Skip to content

Commit 046281f

Browse files
committed
Revert "Count yamux metrics forcefully"
This reverts commit 88cdeed.
1 parent 88cdeed commit 046281f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: include/libp2p/muxer/yamux/yamuxed_connection.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace libp2p::connection {
2020

2121
class CountableBuffer : public std::vector<uint8_t> {
2222
public:
23-
LIBP2P_METRICS_INSTANCE_COUNT(
23+
LIBP2P_METRICS_INSTANCE_COUNT_IF_ENABLED(
2424
libp2p::connection::CountableBuffer);
2525
};
2626

@@ -249,7 +249,7 @@ namespace libp2p::connection {
249249
bool close_after_write_ = false;
250250

251251
public:
252-
LIBP2P_METRICS_INSTANCE_COUNT(
252+
LIBP2P_METRICS_INSTANCE_COUNT_IF_ENABLED(
253253
libp2p::connection::YamuxedConnection);
254254
};
255255

0 commit comments

Comments
 (0)