Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 9ebb566

Browse files
committed
avoid using context for get response
1 parent e67c36a commit 9ebb566

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

gapic/cli/generate.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ def generate(request: typing.BinaryIO, output: typing.BinaryIO) -> None:
6363
# to each template in the rendering step.
6464
api_schema = api.API.build(req.proto_file, opts=opts, package=package)
6565

66-
with generation_cache_context():
67-
# Translate into a protobuf CodeGeneratorResponse; this reads the
68-
# individual templates and renders them.
69-
# If there are issues, error out appropriately.
70-
res = generator.Generator(opts).get_response(api_schema, opts)
66+
# Translate into a protobuf CodeGeneratorResponse; this reads the
67+
# individual templates and renders them.
68+
# If there are issues, error out appropriately.
69+
res = generator.Generator(opts).get_response(api_schema, opts)
7170

7271
# Output the serialized response.
7372
output.write(res.SerializeToString())

0 commit comments

Comments
 (0)