Skip to content

Commit

Permalink
fix nullref in scale monitor (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianburckhardt authored Dec 21, 2021
1 parent b74f132 commit 3be91de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ public bool TryGetScalingMonitor(out ScalingMonitor monitor)
this.Settings.ResolvedTransportConnectionString,
this.Settings.LoadInformationAzureTableName,
this.Settings.HubName,
this.TraceHelper.TraceScaleRecommendation);
this.TraceHelper.TraceScaleRecommendation,
this.TraceHelper.Logger);
return true;
}
else
Expand Down
4 changes: 3 additions & 1 deletion src/DurableTask.Netherite/Scaling/ScalingMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ public ScalingMonitor(
string eventHubsConnectionString,
string partitionLoadTableName,
string taskHubName,
Action<string, int, string> recommendationTracer)
Action<string, int, string> recommendationTracer,
ILogger logger)
{
this.storageConnectionString = storageConnectionString;
this.eventHubsConnectionString = eventHubsConnectionString;
this.partitionLoadTableName = partitionLoadTableName;
this.taskHubName = taskHubName;
this.recommendationTracer = recommendationTracer;
this.Logger = logger;

TransportConnectionString.Parse(eventHubsConnectionString, out _, out this.configuredTransport);

Expand Down

0 comments on commit 3be91de

Please sign in to comment.