mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
net: pass Span by value to CaptureMessage()
Span is lightweight and need not be passed by const reference.
This commit is contained in:
@@ -1275,13 +1275,13 @@ private:
|
||||
/** Dump binary message to file, with timestamp */
|
||||
void CaptureMessageToFile(const CAddress& addr,
|
||||
const std::string& msg_type,
|
||||
const Span<const unsigned char>& data,
|
||||
Span<const unsigned char> data,
|
||||
bool is_incoming);
|
||||
|
||||
/** Defaults to `CaptureMessageToFile()`, but can be overridden by unit tests. */
|
||||
extern std::function<void(const CAddress& addr,
|
||||
const std::string& msg_type,
|
||||
const Span<const unsigned char>& data,
|
||||
Span<const unsigned char> data,
|
||||
bool is_incoming)>
|
||||
CaptureMessage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user