Merge pull request #27 from lbryio/claim_oneof
use oneof in Claim message
This commit is contained in:
commit
a938a4617f
1 changed files with 4 additions and 8 deletions
|
@ -3,14 +3,10 @@ syntax = "proto3";
|
|||
package pb;
|
||||
|
||||
message Claim {
|
||||
enum Type {
|
||||
STREAM = 0;
|
||||
CHANNEL = 1;
|
||||
}
|
||||
|
||||
Type type = 1; // do we need this?
|
||||
Stream stream = 2;
|
||||
Channel channel = 3;
|
||||
oneof type {
|
||||
Stream stream = 1;
|
||||
Channel channel = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message Channel {
|
||||
|
|
Loading…
Reference in a new issue