mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove some unnecessary std::move calls in broker::Manager
This commit is contained in:
parent
bf82f8afc1
commit
9091fe5c99
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ bool Manager::PublishEvent(string topic, std::string name, broker::vector args,
|
||||||
if ( peer_count == 0 )
|
if ( peer_count == 0 )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
broker::zeek::Event ev(std::move(name), std::move(args), broker::to_timestamp(ts));
|
broker::zeek::Event ev(name, args, broker::to_timestamp(ts));
|
||||||
DBG_LOG(DBG_BROKER, "Publishing event: %s", RenderEvent(topic, name, ev.args()).c_str());
|
DBG_LOG(DBG_BROKER, "Publishing event: %s", RenderEvent(topic, name, ev.args()).c_str());
|
||||||
bstate->endpoint.publish(std::move(topic), ev.move_data());
|
bstate->endpoint.publish(std::move(topic), ev.move_data());
|
||||||
num_events_outgoing_metric->Inc();
|
num_events_outgoing_metric->Inc();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue