deploy: 6a4fcaa6719f3639efbb41cf33b860eea5ef942e

This commit is contained in:
staheri14 2021-04-09 17:11:06 +00:00
parent 2373b7c927
commit 7108ab8c1c
3 changed files with 10 additions and 10 deletions

View File

@ -1 +1 @@
1617962661 1617987051

View File

@ -2,7 +2,7 @@
# libtool - Provide generalized library-building support services. # libtool - Provide generalized library-building support services.
# Generated automatically by config.status (libbacktrace) version-unused # Generated automatically by config.status (libbacktrace) version-unused
# Libtool was configured on host fv-az190-262: # Libtool was configured on host fv-az196-139:
# NOTE: Changes made to this file will be lost: look at ltmain.sh. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
# #
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,

View File

@ -117,17 +117,17 @@ proc init*(T: type HistoryQuery, buffer: seq[byte]): ProtoResult[T] =
var topics: seq[ContentTopic] var topics: seq[ContentTopic]
discard ? pb.getRepeatedField(1, topics) discard ? pb.getRepeatedField(2, topics)
msg.topics = topics msg.topics = topics
var pagingInfoBuffer: seq[byte] var pagingInfoBuffer: seq[byte]
discard ? pb.getField(2, pagingInfoBuffer) discard ? pb.getField(3, pagingInfoBuffer)
msg.pagingInfo = ? PagingInfo.init(pagingInfoBuffer) msg.pagingInfo = ? PagingInfo.init(pagingInfoBuffer)
discard ? pb.getField(3, msg.startTime) discard ? pb.getField(4, msg.startTime)
discard ? pb.getField(4, msg.endTime) discard ? pb.getField(5, msg.endTime)
ok(msg) ok(msg)
@ -170,12 +170,12 @@ proc encode*(query: HistoryQuery): ProtoBuffer =
result = initProtoBuffer() result = initProtoBuffer()
for topic in query.topics: for topic in query.topics:
result.write(1, topic) result.write(2, topic)
result.write(2, query.pagingInfo.encode()) result.write(3, query.pagingInfo.encode())
result.write(3, query.startTime) result.write(4, query.startTime)
result.write(4, query.endTime) result.write(5, query.endTime)
proc encode*(response: HistoryResponse): ProtoBuffer = proc encode*(response: HistoryResponse): ProtoBuffer =
result = initProtoBuffer() result = initProtoBuffer()