this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix pub optional

+9 -7
+8 -6
gen/go/lrc.pb.go
··· 445 445 446 446 type Pub struct { 447 447 state protoimpl.MessageState `protogen:"open.v1"` 448 - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 448 + Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` 449 449 unknownFields protoimpl.UnknownFields 450 450 sizeCache protoimpl.SizeCache 451 451 } ··· 481 481 } 482 482 483 483 func (x *Pub) GetId() uint32 { 484 - if x != nil { 485 - return x.Id 484 + if x != nil && x.Id != nil { 485 + return *x.Id 486 486 } 487 487 return 0 488 488 } ··· 1095 1095 "\x05_nickB\r\n" + 1096 1096 "\v_externalIDB\b\n" + 1097 1097 "\x06_colorB\t\n" + 1098 - "\a_echoed\"\x15\n" + 1099 - "\x03Pub\x12\x0e\n" + 1100 - "\x02id\x18\x01 \x01(\rR\x02id\"X\n" + 1098 + "\a_echoed\"!\n" + 1099 + "\x03Pub\x12\x13\n" + 1100 + "\x02id\x18\x01 \x01(\rH\x00R\x02id\x88\x01\x01B\x05\n" + 1101 + "\x03_id\"X\n" + 1101 1102 "\x06Insert\x12\x13\n" + 1102 1103 "\x02id\x18\x01 \x01(\rH\x00R\x02id\x88\x01\x01\x12\x12\n" + 1103 1104 "\x04body\x18\x02 \x01(\tR\x04body\x12\x1e\n" + ··· 1232 1233 (*Event_Unban)(nil), 1233 1234 } 1234 1235 file_lrc_proto_msgTypes[3].OneofWrappers = []any{} 1236 + file_lrc_proto_msgTypes[4].OneofWrappers = []any{} 1235 1237 file_lrc_proto_msgTypes[5].OneofWrappers = []any{} 1236 1238 file_lrc_proto_msgTypes[6].OneofWrappers = []any{} 1237 1239 file_lrc_proto_msgTypes[9].OneofWrappers = []any{}
+1 -1
lrc.proto
··· 33 33 optional bool echoed = 5; 34 34 } 35 35 36 - message Pub { uint32 id = 1; } 36 + message Pub { optional uint32 id = 1; } 37 37 38 38 message Insert { 39 39 optional uint32 id = 1;