Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Jun 10, 2024
1 parent 54a3c7b commit d5c44f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/BeeNet/BeeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using FileResponse = Etherna.BeeNet.Models.FileResponse;

namespace Etherna.BeeNet
{
Expand All @@ -44,12 +44,12 @@ public class BeeClient : IBeeClient, IDisposable
public BeeClient(
string baseUrl = "http://localhost/",
int gatewayApiPort = 1633,
HttpClient? customHttpClient = null)
HttpClient? httpClient = null)
{
httpClient = customHttpClient ?? new HttpClient { Timeout = DefaultTimeout };
this.httpClient = httpClient ?? new HttpClient { Timeout = DefaultTimeout };

GatewayApiUrl = new Uri(BuildBaseUrl(baseUrl, gatewayApiPort));
generatedClient = new BeeGeneratedClient(httpClient) { BaseUrl = GatewayApiUrl.ToString() };
generatedClient = new BeeGeneratedClient(this.httpClient) { BaseUrl = GatewayApiUrl.ToString() };
}

// Dispose.
Expand Down Expand Up @@ -320,7 +320,7 @@ public async Task<SwarmAddress> GetFeedAsync(
CancellationToken cancellationToken = default) =>
(await generatedClient.FeedsGetAsync(owner, topic, at, after, type, cancellationToken).ConfigureAwait(false)).Reference;

public async Task<Models.FileResponse> GetFileAsync(
public async Task<FileResponse> GetFileAsync(
SwarmAddress address,
bool? swarmCache = null,
RedundancyStrategy? swarmRedundancyStrategy = null,
Expand All @@ -338,7 +338,7 @@ public async Task<SwarmAddress> GetFeedAsync(
public Task GetFileHeadAsync(SwarmAddress address, CancellationToken cancellationToken = default) =>
generatedClient.BzzHeadAsync((string)address, cancellationToken);

public async Task<Models.FileResponse> GetFileWithPathAsync(
public async Task<FileResponse> GetFileWithPathAsync(
SwarmAddress address,
string path,
RedundancyStrategy? swarmRedundancyStrategy = null,
Expand Down

0 comments on commit d5c44f8

Please sign in to comment.