Skip to content

Commit

Permalink
[nspcc-dev#194] object: Replace Lock message to a separate package
Browse files Browse the repository at this point in the history
Create `lock` package and replace `Lock` message into it to follow the
same approach as with `StorageGroup` and `Tombstone`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich committed Feb 18, 2022
1 parent fab4c7b commit adecc9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 14 additions & 0 deletions lock/types.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
syntax = "proto3";

package neo.fs.v2.lock;

option go_package = "github.com/nspcc-dev/neofs-api-go/v2/lock/grpc;lock";
option csharp_namespace = "Neo.FileStorage.API.Lock";

import "refs/types.proto";

// Lock keeps record of objects that are locked.
message Lock {
// List of objects to be locked.
repeated neo.fs.v2.refs.ObjectID members = 1 [json_name = "members"];
}
6 changes: 0 additions & 6 deletions object/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,3 @@ message SplitInfo {
// object parts.
neo.fs.v2.refs.ObjectID link = 3;
}

// Lock keeps record of objects that are locked.
message Lock {
// List of objects to be locked.
repeated neo.fs.v2.refs.ObjectID members = 1 [json_name = "members"];
}

0 comments on commit adecc9d

Please sign in to comment.