From f98cdcb3574ee661223e1a09e1762b2cc85fab2f Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 29 Jul 2021 17:47:15 +0200 Subject: net: pass Span by value to CaptureMessage() Span is lightweight and need not be passed by const reference. --- src/net.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index b31b618eea..d35120794b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -3087,7 +3087,7 @@ uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad) const void CaptureMessageToFile(const CAddress& addr, const std::string& msg_type, - const Span& data, + Span data, bool is_incoming) { // Note: This function captures the message at the time of processing, @@ -3118,6 +3118,6 @@ void CaptureMessageToFile(const CAddress& addr, std::function& data, + Span data, bool is_incoming)> CaptureMessage = CaptureMessageToFile; -- cgit v1.2.3