Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Dec 19, 2022
1 parent 58c1e66 commit 24ba439
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/broadcast_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BroadcastServer::BroadcastServer() noexcept {
});


if (std::getenv("API_DOMAIN") == nullptr) {
if (std::getenv("API_DOMAIN") != nullptr) {
api_url_ = std::getenv("API_DOMAIN");
std::cout << "API_DOMAIN FOUND:" << api_url_.value() << std::endl;
} else {
Expand Down
1 change: 0 additions & 1 deletion src/prometheus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class PrometheusExporter {
~PrometheusExporter() noexcept = default;

auto get_opened_connections() noexcept -> prometheus::Family<prometheus::Counter> &;

auto get_closed_connections() noexcept -> prometheus::Family<prometheus::Counter> &;
};

Expand Down
3 changes: 1 addition & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ async def hello(uri):
await websocket.send(raw_config)
while True:
data = json.loads(await websocket.recv())
if "enriched" in data.keys():
print(data["enriched"])
print(data)

asyncio.run(hello("wss://socket.staging.dvb.solutions"))
#asyncio.run(hello("ws://127.0.0.1:9001"))

0 comments on commit 24ba439

Please sign in to comment.