From 58e200ddc6f6ccdbffed8ae91576aba2cb55c351 Mon Sep 17 00:00:00 2001
From: Martin Teichmann <martin.teichmann@gmail.com>
Date: Sat, 4 Feb 2023 15:42:02 +0000
Subject: [PATCH] remove the sleep from the poll loop

---
 ebpfcat/ebpfcat.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ebpfcat/ebpfcat.py b/ebpfcat/ebpfcat.py
index 570f621..a1590be 100644
--- a/ebpfcat/ebpfcat.py
+++ b/ebpfcat/ebpfcat.py
@@ -16,7 +16,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 """The high-level API for EtherCAT loops"""
-from asyncio import ensure_future, gather, sleep, wait_for, TimeoutError
+from asyncio import ensure_future, gather, wait_for, TimeoutError
 from struct import pack, unpack, calcsize, pack_into, unpack_from
 from time import time
 from .arraymap import ArrayMap, ArrayGlobalVarDesc
@@ -377,7 +377,6 @@ class SyncGroupBase:
                 print("didn't receive in time", self.missed_counter)
                 continue
             data = self.update_devices(data)
-            await sleep(0)
 
 
 class SyncGroup(SyncGroupBase):
-- 
GitLab