From 81653a5415e461dc1831520f3f7d1cc6bba1c82e Mon Sep 17 00:00:00 2001 From: cathugger Date: Fri, 26 Jan 2018 14:46:59 +0000 Subject: [PATCH] small sync tweak --- contrib/backends/srndv2/src/srnd/nntp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index 31e791d..2eb2512 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -1372,6 +1372,11 @@ func (self *nntpConnection) scrapeGroup(daemon *NNTPDaemon, conn *textproto.Conn msgid := parts[4] // msgid -> reference articles[msgid] = parts[5] + // incase server returned more articles than we requested + if num, nerr := strconv.ParseUint(parts[0], 10, 64); nerr == nil && num >= lo { + // fix lo so that we wont request them again + lo = num + 1 + } } else { // probably not valid line // ignore