Skip to content

Commit

Permalink
Construct the artman instance only once. (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Nov 16, 2018
1 parent 6f7311c commit 73d3271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synthtool/gcp/gapic_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class GAPICGenerator:
def __init__(self):
self._clone_googleapis()
self._artman = artman.Artman()

def py_library(self, service: str, version: str, **kwargs) -> Path:
"""
Expand Down Expand Up @@ -105,7 +106,7 @@ def _generate_code(

log.debug(f"Running generator for {config_path}.")

output_root = artman.Artman().run(
output_root = self._artman.run(
f"googleapis/artman:{artman.ARTMAN_VERSION}",
googleapis,
config_path,
Expand Down

0 comments on commit 73d3271

Please sign in to comment.