From 181ecf9547634de2bce70b5693acb051d30d9641 Mon Sep 17 00:00:00 2001 From: Alex Trottier Date: Sun, 23 Feb 2020 18:31:28 -0800 Subject: [PATCH] pb: switch namesys proto to use string time duration --- go.mod | 2 +- pb/namesys.proto | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index eed6b90..ff3ec01 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/RTradeLtd/TxPB/v3 +module github.com/RTradeLtd/TxPB/v4 go 1.13 diff --git a/pb/namesys.proto b/pb/namesys.proto index a0d82be..1de71cc 100644 --- a/pb/namesys.proto +++ b/pb/namesys.proto @@ -23,8 +23,8 @@ message NameSysResolveRequest { // before selecting the best record uint32 dhtRecordCount = 3; // the amount of time to wait - // for records to be fetched and verified - int32 dhtTimeout = 4; + // values are time.Duration so 1s, 1h, 10h, etc.. are acceptable values + string dhtTimeout = 4; } // NameSysResolveRequest is an answer to a resolve request @@ -41,11 +41,13 @@ message NameSysPublishRequest { bytes privateKey = 1; // the value of this record string value = 2; - // the eol for this publish, if 0 implies - // as NameSys::Publish call, if non 0 implies + // the eol for this publish, if empty string + // as NameSys::Publish call, if non empty string implies // a NameSys:PublishWithEOL call - int32 eol = 3; + // values are time.Duration so 1s, 1h, 10h, etc.. are acceptable val + string eol = 3; // if set, allows us to override default // ttl value of ipns records - int32 ttl = 4; + // values are time.Duration so 1s, 1h, 10h, etc.. are acceptable val + string ttl = 4; } \ No newline at end of file