Skip to content

Commit 50019d4

Browse files
committed
move namespace
1 parent 06dc629 commit 50019d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/viam/sdk/module/service.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
namespace viam {
4949
namespace sdk {
5050

51+
namespace {
52+
std::string get_protocol(int argc, char** argv) {
53+
for (int i = 0; i < argc; ++i) {
54+
if (strcmp(argv[i], "--tcp-mode") == 0) {
55+
return "dns:";
56+
}
57+
}
58+
return "unix:";
59+
}
60+
} // namespace
61+
5162
struct ModuleService::ServiceImpl : viam::module::v1::ModuleService::Service {
5263
ServiceImpl(ModuleService& p) : parent(p) {}
5364

@@ -242,17 +253,6 @@ ModuleService::ModuleService(std::string addr, std::string grpc_conn_protocol)
242253
impl_ = std::make_unique<ServiceImpl>(*this);
243254
}
244255

245-
namespace {
246-
std::string get_protocol(int argc, char** argv) {
247-
for (int i = 0; i < argc; ++i) {
248-
if (strcmp(argv[i], "--tcp-mode") == 0) {
249-
return "dns:";
250-
}
251-
}
252-
return "unix:";
253-
}
254-
} // namespace
255-
256256
ModuleService::ModuleService(int argc,
257257
char** argv,
258258
const std::vector<std::shared_ptr<ModelRegistration>>& registrations)

0 commit comments

Comments
 (0)