@@ -91,8 +91,6 @@ public class DedupManifestArtifactClientFactory : IDedupManifestArtifactClientFa
9191 // At 192x it was around 16 seconds and 256x was no faster.
9292 private const int DefaultDedupStoreClientMaxParallelism = 192 ;
9393
94- private HashType ? HashType { get ; set ; }
95-
9694 public static readonly DedupManifestArtifactClientFactory Instance = new ( ) ;
9795
9896 private DedupManifestArtifactClientFactory ( )
@@ -152,17 +150,17 @@ private DedupManifestArtifactClientFactory()
152150 IDedupStoreHttpClient dedupStoreHttpClient = GetDedupStoreHttpClient ( connection , domainId , maxRetries , tracer , cancellationToken ) ;
153151
154152 var telemetry = new BlobStoreClientTelemetry ( tracer , dedupStoreHttpClient . BaseAddress ) ;
155- this . HashType = clientSettings . GetClientHashType ( context ) ;
153+ HashType hashType = clientSettings . GetClientHashType ( context ) ;
156154
157- if ( this . HashType == BuildXL . Cache . ContentStore . Hashing . HashType . Dedup1024K )
155+ if ( hashType == BuildXL . Cache . ContentStore . Hashing . HashType . Dedup1024K )
158156 {
159157 dedupStoreHttpClient . RecommendedChunkCountPerCall = 10 ; // This is to workaround IIS limit - https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/
160158 }
161- traceOutput ( $ "Hashtype: { this . HashType . Value } ") ;
159+ traceOutput ( $ "Hashtype: { hashType } ") ;
162160
163161 dedupStoreHttpClient . SetRedirectTimeout ( clientSettings . GetRedirectTimeout ( ) ) ;
164162
165- var dedupClient = new DedupStoreClientWithDataport ( dedupStoreHttpClient , new DedupStoreClientContext ( maxParallelism ) , this . HashType . Value ) ;
163+ var dedupClient = new DedupStoreClientWithDataport ( dedupStoreHttpClient , new DedupStoreClientContext ( maxParallelism ) , hashType ) ;
166164 return ( new DedupManifestArtifactClient ( telemetry , dedupClient , tracer ) , telemetry ) ;
167165 }
168166
@@ -222,6 +220,7 @@ private static IDedupStoreHttpClient GetDedupStoreHttpClient(VssConnection conne
222220 dedupStoreHttpClient . SetRedirectTimeout ( redirectTimeoutSeconds ) ;
223221 var telemetry = new BlobStoreClientTelemetryTfs ( tracer , dedupStoreHttpClient . BaseAddress , connection ) ;
224222 var client = new DedupStoreClient ( dedupStoreHttpClient , maxParallelism ) ;
223+ traceOutput ( $ " - Hash type: { client . HashType } ") ;
225224 return ( client , telemetry ) ;
226225 }
227226
0 commit comments