Fixes issue where fetching of enode fails
This commit is contained in:
parent
9eae7cf25e
commit
b16eb4e88a
|
@ -107,6 +107,7 @@ namespace DistTestCore.Marketplace
|
||||||
|
|
||||||
public string GetPubKey()
|
public string GetPubKey()
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(pubKey)) throw new Exception("Not found yet exception.");
|
||||||
return pubKey;
|
return pubKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,22 +41,22 @@
|
||||||
|
|
||||||
public static void Retry(Action action, string description)
|
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)
|
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)
|
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)
|
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)
|
public static void Retry(Action action, TimeSpan timeout, TimeSpan retryTime, string description)
|
||||||
|
|
Loading…
Reference in New Issue