Skip to content

Commit

Permalink
fix useless mirror selector
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Nov 24, 2024
1 parent 926b501 commit 563fa54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ListView
Header="{shuxm:ResourceString Name=ViewDialogUpdatePackageMirrorHeader}"
ItemsSource="{x:Bind Mirrors}"
SelectedItem="{x:Bind SelectedItem}">
SelectedItem="{x:Bind SelectedItem, Mode=TwoWay}">
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding MirrorName}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace Snap.Hutao.Web.Endpoint.Hutao;

internal interface IHomaDistributionEndpoints : IHomaRootAccess
{
public string DistributionGetAccMirror(string filename)
public string DistributionGetAcceleratedMirror(string filename)
{
return $"{Root}/Distribution/GetAccMirror?Filename={filename}";
return $"{Root}/Distribution/GetAcceleratedMirror?Filename={filename}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal sealed partial class HutaoDistributionClient
public async ValueTask<HutaoResponse<HutaoPackageMirror>> GetAccMirrorAsync(string filename, CancellationToken token = default)
{
HttpRequestMessageBuilder builder = httpRequestMessageBuilderFactory.Create()
.SetRequestUri(hutaoEndpointsFactory.Create().DistributionGetAccMirror(filename))
.SetRequestUri(hutaoEndpointsFactory.Create().DistributionGetAcceleratedMirror(filename))
.Get();

await builder.TrySetTokenAsync(hutaoUserOptions).ConfigureAwait(false);
Expand Down

0 comments on commit 563fa54

Please sign in to comment.