Skip to content

Commit

Permalink
updated kafka protocol for recent changes (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-pytel authored Aug 3, 2021
1 parent bcb5962 commit bc99949
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions skywalking/agent/protocol/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ def __init__(self):
self.service_management = KafkaServiceManagementClient()
self.traces_reporter = KafkaTraceSegmentReportService()

def connected(self):
return True

def heartbeat(self):
self.service_management.send_heart_beat()

Expand All @@ -52,7 +49,7 @@ def generator():
timeout = config.QUEUE_TIMEOUT - int(time() - start) # type: int
if timeout <= 0: # this is to make sure we exit eventually instead of being fed continuously
return
segment = queue.get(block=block) # type: Segment
segment = queue.get(block=block, timeout=timeout) # type: Segment
except Empty:
return

Expand Down

0 comments on commit bc99949

Please sign in to comment.