Skip to content

Commit 32f19dd

Browse files
committed
Avoid redundant plugin instanciation
1 parent 6191b82 commit 32f19dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/azul/azulclient.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
from azul import (
4242
CatalogName,
4343
R,
44-
cache,
4544
cached_property,
4645
config,
4746
)
@@ -120,9 +119,8 @@ class MirrorAction(Action):
120119
class AzulClient(SignatureHelper, HasCachedHttpClient):
121120
num_workers: int = 16
122121

123-
@cache
124122
def repository_plugin(self, catalog: CatalogName) -> RepositoryPlugin:
125-
return RepositoryPlugin.load(catalog).create(catalog)
123+
return self.index_service.repository_plugin(catalog)
126124

127125
def notification(self, bundle_fqid: SourcedBundleFQID) -> JSON:
128126
"""

0 commit comments

Comments
 (0)