diff options
author | Finrod Felagund <finrod.felagund.97@gmail.com> | 2024-04-16 16:51:19 +0200 |
---|---|---|
committer | Finrod Felagund <finrod.felagund.97@gmail.com> | 2024-04-16 16:57:00 +0200 |
commit | b0a729a0a79040e0c32142007f4e63ef06d7ae30 (patch) | |
tree | 56c48670eb5fcf42548fcebb8ddb109eb7eb2f56 /src/nostr_service.cpp | |
parent | eca45873a1adbfac46a05fd05199b30a0ce3b6b9 (diff) |
use namespaces instead of using specific variables
Diffstat (limited to 'src/nostr_service.cpp')
-rw-r--r-- | src/nostr_service.cpp | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/src/nostr_service.cpp b/src/nostr_service.cpp index 3a59fa6..de40180 100644 --- a/src/nostr_service.cpp +++ b/src/nostr_service.cpp @@ -10,26 +10,9 @@ #include "nostr.hpp" #include "client/web_socket_client.hpp" -using nlohmann::json; -using std::async; -using std::exception; -using std::find_if; -using std::function; -using std::future; -using std::invalid_argument; -using std::lock_guard; -using std::make_shared; -using std::make_tuple; -using std::move; -using std::mutex; -using std::out_of_range; -using std::promise; -using std::shared_ptr; -using std::string; -using std::thread; -using std::tuple; -using std::unique_ptr; -using std::vector; +using namespace nlohmann; +using namespace std; +using namespace UUIDv4; namespace nostr { @@ -513,8 +496,8 @@ void NostrService::disconnect(string relay) string NostrService::generateSubscriptionId() { - UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator; - UUIDv4::UUID uuid = uuidGenerator.getUUID(); + UUIDGenerator<std::mt19937_64> uuidGenerator; + UUID uuid = uuidGenerator.getUUID(); return uuid.bytes(); }; |