Skip to content

Conversation

TingluoHuang
Copy link
Member

In prepare for my up coming change, I am making small changes to reduce future PR's diff.

@TingluoHuang TingluoHuang requested a review from a team as a code owner March 28, 2025 20:06
@@ -63,8 +65,7 @@ public async Task<CreateSessionResult> CreateSessionAsync(CancellationToken toke

// Create connection.
Trace.Info("Loading Credentials");
var credMgr = HostContext.GetService<ICredentialManager>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to class level, since we will going to reuse it later.

@@ -329,7 +330,7 @@ public async Task<TaskAgentMessage> GetNextMessageAsync(CancellationToken token)
}
}

public async Task RefreshListenerTokenAsync(CancellationToken cancellationToken)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the CancellationToken cancellationToken from the interface method since no one is using it.

var configManager = HostContext.GetService<IConfigurationManager>();
_settings = configManager.LoadSettings();

if (string.IsNullOrEmpty(_settings.ServerUrlV2))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to check this again, we are in BrokerMessageListener only if we have the ServerUrlV2 in the first place.

@TingluoHuang TingluoHuang merged commit 2cb1f94 into main Mar 28, 2025
9 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/cleanup2 branch March 28, 2025 20:25
marko-k0 pushed a commit to dfinity/runner that referenced this pull request May 13, 2025
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants