Archived
1
0

Revert "fix watermark stuff"

This reverts commit 23c357eaac.
This commit is contained in:
Jeff 2018-11-24 17:51:59 -05:00
parent cbd7d30e8d
commit d1c392ce29

View File

@ -854,7 +854,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
if err == nil { if err == nil {
hi, lo, err = daemon.database.GetLastAndFirstForGroup(group) hi, lo, err = daemon.database.GetLastAndFirstForGroup(group)
if err == nil { if err == nil {
conn.PrintfLine("211 %d %d %d %s list follows", count, hi, lo, group) conn.PrintfLine("211 %d %d %d %s list follows", count, lo, hi, group)
dw := conn.DotWriter() dw := conn.DotWriter()
idx := lo idx := lo
for idx <= hi { for idx <= hi {
@ -1002,7 +1002,7 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string
hi, low, err := daemon.database.GetLastAndFirstForGroup(group) hi, low, err := daemon.database.GetLastAndFirstForGroup(group)
if err == nil { if err == nil {
// we gud // we gud
conn.PrintfLine("211 %d %d %d %s", number, hi, low, group) conn.PrintfLine("211 %d %d %d %s", number, low, hi, group)
} else { } else {
// wtf error // wtf error
log.Println(self.name, "error in GROUP command", err) log.Println(self.name, "error in GROUP command", err)
@ -1327,7 +1327,7 @@ func (self *nntpConnection) scrapeGroup(daemon *NNTPDaemon, conn *textproto.Conn
// check code // check code
if code == 211 { if code == 211 {
// success // success
es, hi, lo, _ := interpretGroupResult(ret) es, lo, hi, _ := interpretGroupResult(ret)
for { for {
if lo > hi { if lo > hi {
// server indicated empty group // server indicated empty group