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 authored and MRichards99 committed Oct 2, 2024
1 parent 11f4a7b commit 7b4d5af
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 7b4d5af

Please sign in to comment.