add timeouts

This commit is contained in:
2024-01-14 21:44:12 +00:00
parent c8294cf317
commit f56ef8703c
3 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ public class NostrServicesClient
{
_client = client;
_client.BaseAddress = new Uri("https://nostr.api.v0l.io");
_client.Timeout = TimeSpan.FromSeconds(60);
}
public async Task<NostrProfile?> Profile(string id)