Remove unused methods from FairMQProgOptions

This commit is contained in:
Alexey Rybalchenko
2019-05-13 16:48:24 +02:00
committed by Dennis Klein
parent 3538d9f410
commit f46803a8b6
5 changed files with 55 additions and 130 deletions

View File

@@ -432,6 +432,13 @@ try {
return true;
}
// validate channel name
if (fName.find(".") != string::npos) {
ss << "INVALID";
LOG(error) << "channel name must not contain '.'";
return false;
}
// validate socket type
const set<string> socketTypes{ "sub", "pub", "pull", "push", "req", "rep", "xsub", "xpub", "dealer", "router", "pair" };
if (socketTypes.find(fType) == socketTypes.end()) {