GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-nodejs-connector

Improve caching of Instance configs

Offen
#304 0 Kommentare 0 Reaktionen 1 zugewiesene Person Zugewiesen an @hessjcg Auf GitHub ansehen
priority: p2 type: feature request
Vorherrschende Sprache
TypeScript
Sterne
97
Forks
16
Ø Merge
4 T. 16 Std.
Gemergte PRs (30 T.)
4

Beschreibung

Currently we cache instance connection info by `instanceConnectionName` and error out if the iam authn flag switches between consecutive connect calls. We should update the hash key (instanceConnectionName+iam authn) for how we cache our configs so that we can handle support for flag switches without needing to error.

https://github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector/blob/00a6eae6a18aed0cd1e62d31d46e61eb0c13c7e8/src/connector.ts#L76-L79

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.