Page MenuHomePhabricator

[services] Tunnelbroker - Fix warnings during the AmqpManager build
ClosedPublic

Authored by max on Apr 25 2022, 3:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 2:30 AM
Unknown Object (File)
Sun, Dec 1, 3:34 AM
Unknown Object (File)
Wed, Nov 27, 3:52 PM
Unknown Object (File)
Wed, Nov 27, 3:20 PM
Unknown Object (File)
Nov 23 2024, 11:02 PM
Unknown Object (File)
Nov 23 2024, 10:20 PM
Unknown Object (File)
Nov 23 2024, 7:26 PM
Unknown Object (File)
Nov 13 2024, 4:43 AM

Details

Summary

Fixing small std::string conversion warnings during the build process:

AmqpManager.cpp:40:30: use of overloaded operator '=' is ambiguous (with operand types 'AMQP::AssociativeFieldProxy' (aka 'FieldProxy<AMQP::Table, basic_string<char, char_traits<char>, allocator<char>>>') and 'const size_t' (aka 'const unsigned long'))
[build]   arguments["x-message-ttl"] = AMQP_MESSAGE_TTL;
Test Plan

Run yarn run-tunnelbroker-service and successfully built the service without any warnings.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max edited the test plan for this revision. (Show Details)
max added reviewers: karol, tomek, varun.
max edited the summary of this revision. (Show Details)

Rebased on master.

services/tunnelbroker/src/Amqp/AmqpManager.cpp
63–69 ↗(On Diff #11865)

where does get() come from?

tomek added 1 blocking reviewer(s): karol.

basically, this looks good but please respond, thanks.

This revision is now accepted and ready to land.Apr 27 2022, 11:57 PM

Removing .get() from this update.

max added inline comments.
services/tunnelbroker/src/Amqp/AmqpManager.cpp
63–69 ↗(On Diff #11865)

where does get() come from?

It's from AMQP:: Table.
I've re-checked and I think it is redundant here and we can omit get() here.
The warning was related only when set AMQP::Table not about get it.
I've removed it as redundant.

Thanks for a fast review!