Skip to content

Commit

Permalink
Only perform copy when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjo-openai committed Nov 27, 2024
1 parent b02cd75 commit 8da4f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsig/spec_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def _process_specs(self, specs_json, source: DataSource) -> Tuple[bool, bool]:
return False, False
if specs_json.get("time", 0) < self.last_update_time():
return False, False
copy = json.dumps(specs_json)
if callable(self._options.rules_updated_callback):
copy = json.dumps(specs_json)
self._options.rules_updated_callback(copy)

def get_parsed_specs(key: str):
Expand Down

0 comments on commit 8da4f3a

Please sign in to comment.