From 4bdd05ade883e51c214fb42d4e95697375c8956d Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 15:58:38 +0300 Subject: [PATCH] [#26] refs: Use ObjectID message in Address This commit makes ObjectID field of refs.Address message to use dedicated message for object identifier ObjectID. Signed-off-by: Leonard Lyubich --- proto-docs/refs.md | 2 +- refs/types.proto | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proto-docs/refs.md b/proto-docs/refs.md index 94dbc86..5947f70 100644 --- a/proto-docs/refs.md +++ b/proto-docs/refs.md @@ -31,7 +31,7 @@ Address of object (container id + object id) | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ObjectID | [bytes](#bytes) | | ObjectID is an object identifier, valid UUIDv4 represented in bytes | +| ObjectID | [ObjectID](#refs.ObjectID) | | ObjectID carries object identifier. | | CID | [bytes](#bytes) | | CID is container identifier | diff --git a/refs/types.proto b/refs/types.proto index dd78dc0..45e28a5 100644 --- a/refs/types.proto +++ b/refs/types.proto @@ -12,8 +12,8 @@ option (gogoproto.goproto_stringer_all) = false; // Address of object (container id + object id) message Address { - // ObjectID is an object identifier, valid UUIDv4 represented in bytes - bytes ObjectID = 1[(gogoproto.customtype) = "ObjectID", (gogoproto.nullable) = false]; + // ObjectID carries object identifier. + ObjectID ObjectID = 1; // CID is container identifier bytes CID = 2[(gogoproto.customtype) = "CID", (gogoproto.nullable) = false]; }