Fixes issue where fetching of enode fails

This commit is contained in:
benbierens 2023-06-01 14:03:16 +02:00
parent 9eae7cf25e
commit b16eb4e88a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 5 additions and 4 deletions

View File

@ -107,6 +107,7 @@ namespace DistTestCore.Marketplace
public string GetPubKey()
{
if (string.IsNullOrEmpty(pubKey)) throw new Exception("Not found yet exception.");
return pubKey;
}

View File

@ -41,22 +41,22 @@
public static void Retry(Action action, string description)
{
Retry(action, TimeSpan.FromMinutes(2), description);
Retry(action, TimeSpan.FromMinutes(1), description);
}
public static T Retry<T>(Func<T> action, string description)
{
return Retry(action, TimeSpan.FromMinutes(2), description);
return Retry(action, TimeSpan.FromMinutes(1), description);
}
public static void Retry(Action action, TimeSpan timeout, string description)
{
Retry(action, timeout, TimeSpan.FromSeconds(2), description);
Retry(action, timeout, TimeSpan.FromSeconds(1), description);
}
public static T Retry<T>(Func<T> action, TimeSpan timeout, string description)
{
return Retry(action, timeout, TimeSpan.FromSeconds(2), description);
return Retry(action, timeout, TimeSpan.FromSeconds(1), description);
}
public static void Retry(Action action, TimeSpan timeout, TimeSpan retryTime, string description)