Skip to content

Commit eb3d3a7

Browse files
committed
Make token volatile
1 parent eb59cfc commit eb3d3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Confluent.SchemaRegistry/Rest/Authentication/BearerAuthenticationHeaderValueProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BearerAuthenticationHeaderValueProvider : IAuthenticationBearerHead
3434
private readonly int retriesWaitMs;
3535
private readonly int retriesMaxWaitMs;
3636
private readonly HttpClient httpClient;
37-
private BearerToken token;
37+
private volatile BearerToken token;
3838
private const float tokenExpiryThreshold = 0.8f;
3939

4040
public BearerAuthenticationHeaderValueProvider(

0 commit comments

Comments
 (0)