Commit 793943c
authored
cache library version (#2238)
so we don't need to read environment properties every call.
Fixes #2234.
This is not the approach proposed in the issue.
As implemented in this PR, we will read the property once
for every client instantiation, not once ever.
Still, this should be fast enough,
and we won't need to maintain double-check-locking mechanism.1 parent 8e074f3 commit 793943c
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments