From ae8959dcf62f9ab3e7ce1aa1bc19b2df57c5656d Mon Sep 17 00:00:00 2001 From: Ankur Shrivastava Date: Thu, 26 Mar 2026 09:13:02 +0800 Subject: [PATCH] feat: add SupportPackageIsVersion1 compile-time version sentinel Add version compatibility constant following the gRPC SupportPackageIsVersion pattern. Downstream packages reference this to enforce coordinated version updates at compile time. --- pool.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pool.go b/pool.go index a0ae92f..9976d5d 100644 --- a/pool.go +++ b/pool.go @@ -9,6 +9,10 @@ import ( "google.golang.org/grpc" ) +// SupportPackageIsVersion1 is a compile-time assertion constant. +// Downstream packages reference this to enforce version compatibility. +const SupportPackageIsVersion1 = true + // based on https://github.com/googleapis/google-api-go-client/blob/v0.115.0/transport/grpc/pool.go // ConnPool is a pool of grpc.ClientConns.