Skip to content

Commit

Permalink
Ensure reader client only initialised once
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinphippsstfc committed Sep 26, 2024
1 parent d7f74c0 commit 0594845
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def __init__(self, entity_type, filters):
self.entity_type,
)
self.reader_query_eligible = self.check_eligibility()
self.create_reader_client()
if not ReaderQueryHandler.reader_client:
self.create_reader_client()

def create_reader_client(self):
log.info("Creating reader_client")
Expand Down

0 comments on commit 0594845

Please sign in to comment.