mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 16:03:07 +00:00
Logs duration of creating a storage request
This commit is contained in:
parent
df5efa4dde
commit
eaa69bcc95
@ -27,8 +27,12 @@ namespace CodexClient
|
|||||||
public IStoragePurchaseContract RequestStorage(StoragePurchaseRequest purchase)
|
public IStoragePurchaseContract RequestStorage(StoragePurchaseRequest purchase)
|
||||||
{
|
{
|
||||||
purchase.Log(log);
|
purchase.Log(log);
|
||||||
|
var swResult = Stopwatch.Measure(log, nameof(RequestStorage), () =>
|
||||||
|
{
|
||||||
|
return codexAccess.RequestStorage(purchase);
|
||||||
|
});
|
||||||
|
|
||||||
var response = codexAccess.RequestStorage(purchase);
|
var response = swResult.Value;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(response) ||
|
if (string.IsNullOrEmpty(response) ||
|
||||||
response == "Unable to encode manifest" ||
|
response == "Unable to encode manifest" ||
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user