Skip to content

Commit

Permalink
remove harcode
Browse files Browse the repository at this point in the history
  • Loading branch information
TennisBowling committed Aug 28, 2022
1 parent 04a6157 commit 7602f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int main(int argc, char *argv[])
spdlog::set_pattern("[%Y-%m-%d %H:%M:%S] [%^%l%$] - %v"); // nice style that i like

auto vm = parse_args(argc, argv);
/*int port;
int port;

if (vm.count("port") == 0)
{
Expand All @@ -65,12 +65,7 @@ int main(int argc, char *argv[])
cpr::Url node{vm["node"].as<std::string>()};
cpr::Url unauth_node{vm["unauth-node"].as<std::string>()};

auto jwt = read_jwt(vm["jwt-secret"].as<std::string>()); */
int port = 8899;
std::string listenaddr = "0.0.0.0";
cpr::Url node{"http://192.168.86.109:8551"};
cpr::Url unauth_node{"http://192.168.86.109:8545"};
auto jwt = read_jwt("C:\\Users\\FASTS\\OneDrive\\Documents\\github\\executionbackup\\jwt.txt");
auto jwt = read_jwt(vm["jwt-secret"].as<std::string>());

// setup leveldb
leveldb::Options options;
Expand Down
4 changes: 2 additions & 2 deletions util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ boost::program_options::variables_map parse_args(int argc, char *argv[])
std::cout << "Compiled with " << BOOST_COMPILER << std::endl;
exit(0);
}
/*

if (vm.count("node") == 0)
{
spdlog::critical("no canonical node specified, exiting");
Expand All @@ -79,7 +79,7 @@ boost::program_options::variables_map parse_args(int argc, char *argv[])
{
spdlog::critical("no jwt secret specified, exiting");
exit(1);
} */
}

if (vm.count("port") == 0)
{
Expand Down

0 comments on commit 7602f89

Please sign in to comment.