perf(protos): cache internode msgpack-only flag (#5191)

Cache the internode msgpack-only env gate after the first read so metadata RPC send paths avoid repeated environment parsing. Keep a reset hook for tests that intentionally change the env in-process.

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-07-24 19:54:14 +08:00
committed by GitHub
parent d8426dc459
commit beb807ae2b
5 changed files with 92 additions and 11 deletions
Generated
+1
View File
@@ -9748,6 +9748,7 @@ dependencies = [
"rustfs-utils",
"serde",
"serde_json",
"temp-env",
"tokio",
"tonic",
"tonic-prost",