mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/prompbmarshal: move WriteRequest proto definition to the correct place
This commit is contained in:
parent
51cdf3676b
commit
bfa73ebdf3
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,6 @@ type Sample struct {
|
|||
|
||||
// MarshalProtobuf appends protobuf-marshaled wr to dst and returns the result.
|
||||
func (wr *WriteRequest) MarshalProtobuf(dst []byte) []byte {
|
||||
// message WriteRequest {
|
||||
// repeated TimeSeries timeseries = 1;
|
||||
// }
|
||||
m := mp.Get()
|
||||
wr.appendToProtobuf(m.MessageMarshaler())
|
||||
dst = m.Marshal(dst)
|
||||
|
@ -63,6 +60,9 @@ func (wr *WriteRequest) MarshalProtobuf(dst []byte) []byte {
|
|||
}
|
||||
|
||||
func (wr *WriteRequest) appendToProtobuf(mm *easyproto.MessageMarshaler) {
|
||||
// message WriteRequest {
|
||||
// repeated TimeSeries timeseries = 1;
|
||||
// }
|
||||
tss := wr.Timeseries
|
||||
for i := range tss {
|
||||
tss[i].appendToProtobuf(mm.AppendMessage(1))
|
||||
|
|
Loading…
Reference in a new issue