Merge pull request #27 from lbryio/claim_oneof

use oneof in Claim message
This commit is contained in:
Alex Grin 2019-03-14 13:59:45 -04:00 committed by GitHub
commit a938a4617f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {