diff --git a/flake.lock b/flake.lock index 8ddccad..623ca46 100644 --- a/flake.lock +++ b/flake.lock @@ -18,11 +18,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1679966490, - "narHash": "sha256-k0jV+y1jawE6w4ZvKgXDNg4+O9NNtcaWwzw8gufv0b4=", + "lastModified": 1680122840, + "narHash": "sha256-zCQ/9iFHzCW5JMYkkHMwgK1/1/kTMgCMHq4THPINpAU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5b7cd5c39befee629be284970415b6eb3b0ff000", + "rev": "a575c243c23e2851b78c00e9fa245232926ec32f", "type": "github" }, "original": { @@ -43,11 +43,11 @@ "tlms-rust": { "flake": false, "locked": { - "lastModified": 1680101323, - "narHash": "sha256-rhELrrWaHFFvQYQ35JVyJlLcY9rMU/wt/J0Af0C+x0o=", + "lastModified": 1680282394, + "narHash": "sha256-cBbVSomnp/EYGmdUOgAynullg46Od/iYtoPmmuhn7yU=", "owner": "tlm-solutions", "repo": "tlms.rs", - "rev": "c2e29033a697b8963058b41049a08718c04347df", + "rev": "6aec5457b0bf397a8d74b516e1288b44c651af6f", "type": "github" }, "original": { diff --git a/src/main.cpp b/src/main.cpp index 3238ba9..452d003 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,7 @@ int main() { grpc::ServerBuilder builder; builder.AddListeningPort(server_address, grpc::InsecureServerCredentials()); builder.RegisterService(&service); + std::unique_ptr server(builder.BuildAndStart()); std::cout << "Server listening on " << server_address << std::endl; server->Wait(); diff --git a/src/receives_waypoints.hpp b/src/receives_waypoints.hpp index 4e8f329..a4c902c 100644 --- a/src/receives_waypoints.hpp +++ b/src/receives_waypoints.hpp @@ -26,8 +26,7 @@ class ReceivesWaypointsImpl final : public tlms::ReceiveWaypoint::Service { explicit ReceivesWaypointsImpl(unsigned short websocket_port) noexcept; ~ReceivesWaypointsImpl() noexcept override; - auto receive_waypoint(grpc::ServerContext *context, const tlms::GrpcWaypoint* waypoint, - tlms::ReturnCode *return_code) noexcept -> grpc::Status override; + auto receive_waypoint(grpc::ServerContext *context, const tlms::GrpcWaypoint* waypoint, tlms::ReturnCode *return_code) noexcept -> grpc::Status override; }; #endif //FUNNEL_RECEIVES_TELEGRAMS_HPP