Skip to content

Commit

Permalink
Merge branch 'aziz/cache' into eelco/widget-skip-build-state
Browse files Browse the repository at this point in the history
  • Loading branch information
eelcovdw committed Jun 25, 2024
2 parents 03e52f0 + ac9d3c1 commit 17d62db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/syft/src/syft/store/linked_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def resolve(self) -> SyftObject:
if api is None:
raise ValueError(f"api is None. You must login to {self.node_uid}")

self._resolve_cache: SyftObject = api.services.notifications.resolve_object(
self
)
return self._resolve_cache
resolve: SyftObject = api.services.notifications.resolve_object(self)
self._resolve_cache = resolve
return resolve

def resolve_with_context(self, context: NodeServiceContext) -> Any:
if context.node is None:
Expand Down

0 comments on commit 17d62db

Please sign in to comment.