]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3110] Fixed sloppy errors
authorThomas Markwalder <tmark@isc.org>
Fri, 1 Dec 2023 14:50:38 +0000 (09:50 -0500)
committerThomas Markwalder <tmark@isc.org>
Fri, 1 Dec 2023 15:14:02 +0000 (10:14 -0500)
src/hooks/dhcp/high_availability/ha_service.cc

index 142109b8002756a0e76864f079af67c5e75514d4..2aaff5dc131d2fc12620e0886c2c265a7d436c86 100644 (file)
@@ -1245,14 +1245,8 @@ HAService::asyncSendLeaseUpdates(const dhcp::Pkt4Ptr& query,
 
 size_t
 HAService::asyncSendSingleLeaseUpdate(const dhcp::Pkt4Ptr& query,
-                                const dhcp::Lease4Ptr& lease,
-                                const hooks::ParkingLotHandlePtr& parking_lot) {
-
-    // Get configurations of the peers. Exclude this instance.
-    HAConfig::PeerConfigMap peers_configs = config_->getOtherServersConfig();
-
-    size_t sent_num = 0;
-
+                                      const dhcp::Lease4Ptr& lease,
+                                      const hooks::ParkingLotHandlePtr& parking_lot) {
     Lease4CollectionPtr leases(new Lease4Collection());
     leases->push_back(lease);
     Lease4CollectionPtr deleted_leases(new Lease4Collection());