Skip to content

Commit

Permalink
bugfix_sate
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitex committed Jun 15, 2017
1 parent 76ee1b2 commit f5986ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
15 changes: 0 additions & 15 deletions core/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
add_library(cache_map STATIC
cache_map.cpp)
add_library(datetime STATIC datetime.cpp)
add_library(logger STATIC logger.cpp)

target_link_libraries(logger
datetime
spdlog
)

add_library(random STATIC random.cpp)

add_library(exception STATIC
exception.cpp
)

add_library(expected STATIC
expected.cpp
)
target_link_libraries(expected
exception
flatbuffers
)

add_library(timer STATIC timer.cpp)

add_library(ip_tools STATIC ip_tools.cpp)
Expand Down
41 changes: 0 additions & 41 deletions core/common/cache_map.cpp

This file was deleted.

6 changes: 3 additions & 3 deletions core/common/ip_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include <utils/ip_tools.hpp>
#include <utils/logger.hpp>
#include <common/ip_tools.hpp>
#include <logger/logger.hpp>

#include <iostream>
#include <regex>
Expand Down Expand Up @@ -86,7 +86,7 @@ std::pair<uint32_t, uint32_t> getIpRangeByNetmask(const std::string &netmask) {

uint32_t cidrmask = (uint32_t)std::stoul(dividedIp[1]);
if (cidrmask < 16) {
logger::warning("Networks larger than /16 are not supported for now");
logger::Logger("ip_tools").warning("Networks larger than /16 are not supported for now");
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion core/common/random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace random_service {

std::string makeHashByMT19937() {
static std::mt19937 mt(std::random_device{}());
return hash::sha3_256_hex(std::to_string(mt()));
return crypto::hash::sha3_256_hex(std::to_string(mt()));
}

}; // namespace random_service

0 comments on commit f5986ca

Please sign in to comment.