Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public AgentHookBase(IServiceProvider services, AgentSettings settings)
_settings = settings;
}

public void SetAget(Agent agent)
public void SetAgent(Agent agent)
{
_agent = agent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface IAgentHook
/// </summary>
string SelfId { get; }
Agent Agent { get; }
void SetAget(Agent agent);
void SetAgent(Agent agent);

/// <summary>
/// Triggered when agent is loading.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task<Agent> LoadAgent(string id, bool loadUtility = true)
continue;
}

hook.SetAget(agent);
hook.SetAgent(agent);

if (!string.IsNullOrEmpty(agent.Instruction))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void ClearCache()
{
// Clear whole cache.
var sharpCache = new SharpCacheAttribute(0);
sharpCache.ClearCacheAsync().ConfigureAwait(false).GetAwaiter().GetResult();
sharpCache.ClearCacheAsync().GetAwaiter().GetResult();
}

public static string HideMiddleDigits(string input, bool isEmail = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task SendEventToModel(object message)
return;
}

await _clientEventSemaphore.WaitAsync().ConfigureAwait(false);
await _clientEventSemaphore.WaitAsync();

try
{
Expand Down
Loading