-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: double vertex only declare once (#205)
Signed-off-by: Sacha Froment <[email protected]> Co-authored-by: droak <[email protected]>
- Loading branch information
Showing
18 changed files
with
609 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
version: v2 | ||
modules: | ||
# - path: packages/node | ||
# excludes: | ||
# - packages/node/node_modules | ||
- path: packages/network | ||
excludes: | ||
- packages/network/node_modules | ||
- path: packages/object | ||
excludes: | ||
- packages/object/node_modules | ||
- path: packages/object/src/proto | ||
name: buf.build/topology/object | ||
|
||
- path: packages/network/src/proto | ||
name: buf.build/topology/network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./node.js"; | ||
export * as NetworkPb from "./proto/messages_pb.js"; | ||
export * as NetworkPb from "./proto/topology/network/messages_pb.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 49 additions & 15 deletions
64
packages/object/src/proto/struct_pb.ts → ...rk/src/proto/google/protobuf/struct_pb.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
packages/network/src/proto/topology/network/messages.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
syntax = "proto3"; | ||
package topology.network; | ||
|
||
import "google/protobuf/struct.proto"; | ||
import "topology/object/object.proto"; | ||
|
||
|
||
message Message { | ||
enum MessageType { | ||
UPDATE = 0; | ||
SYNC = 1; | ||
SYNC_ACCEPT = 2; | ||
SYNC_REJECT = 3; | ||
CUSTOM = 4; | ||
} | ||
|
||
string sender = 1; | ||
MessageType type = 2; | ||
bytes data = 3; | ||
} | ||
|
||
message Update { | ||
string objectId = 1; | ||
repeated topology.object.Vertex vertices = 2; | ||
} | ||
|
||
message Sync { | ||
string objectId = 1; | ||
repeated string vertex_hashes = 2; | ||
} | ||
|
||
message SyncAccept { | ||
string objectId = 1; | ||
repeated topology.object.Vertex requested = 2; | ||
repeated string requesting = 3; | ||
} | ||
|
||
message SyncReject {} |
1 change: 1 addition & 0 deletions
1
packages/network/src/proto/topology/network/messages_grpc_pb.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// GENERATED CODE -- NO SERVICES IN PROTO |
Oops, something went wrong.