Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinaghaei committed Feb 15, 2024
1 parent 0cb9c7a commit 5b80a5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kafka_server/broker/file/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from file.segment import Segment
from manager.env import get_partition_count


BROKER_PROJECT_PATH = os.getenv("BROKER_PROJECT_PATH", "/app/")
sys.path.append(os.path.abspath(BROKER_PROJECT_PATH))

Expand Down Expand Up @@ -116,8 +115,7 @@ def ack_message(self):

def check_data_exist(self):
if self.segment.get_read_index() >= self.segment.get_write_index():
print(f"No key found {self.segment.get_read_index()} "
f"in {self.segment.get_write_index()}")
print(f"No key found {self.segment.get_read_index()} in {self.segment.get_write_index()}")
return False

key, _ = self.segment.read()
Expand Down

0 comments on commit 5b80a5c

Please sign in to comment.