From 20c10a2afd5641a8f95394501949d5fef865f78c Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 26 Nov 2019 13:57:29 +0300 Subject: [PATCH] service: rename EpochRequest to EpochHeader and merge with MetaHeader --- service/epoch.go | 7 ------- service/meta.go | 11 ++++++++--- 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 service/epoch.go diff --git a/service/epoch.go b/service/epoch.go deleted file mode 100644 index 2fd43817..00000000 --- a/service/epoch.go +++ /dev/null @@ -1,7 +0,0 @@ -package service - -// EpochRequest interface gives possibility to get or set epoch in RPC Requests. -type EpochRequest interface { - GetEpoch() uint64 - SetEpoch(v uint64) -} diff --git a/service/meta.go b/service/meta.go index abffdadd..b41596a8 100644 --- a/service/meta.go +++ b/service/meta.go @@ -19,14 +19,19 @@ type ( GetTTL() uint32 SetTTL(uint32) - // EpochRequest gives possibility to get or set epoch in RPC Requests. - GetEpoch() uint64 - SetEpoch(uint64) + // EpochHeader gives possibility to get or set epoch in RPC Requests. + EpochHeader // VersionHeader allows get or set version of protocol request VersionHeader } + // EpochHeader interface gives possibility to get or set epoch in RPC Requests. + EpochHeader interface { + GetEpoch() uint64 + SetEpoch(v uint64) + } + // VersionHeader allows get or set version of protocol request VersionHeader interface { GetVersion() uint32