cswal_light logs own votes; fix tests

This commit is contained in:
Ethan Buchman
2016-03-21 01:24:26 -04:00
parent 16208dc172
commit 922f720cf6
5 changed files with 14 additions and 10 deletions

View File

@ -268,7 +268,7 @@ func (psr *PartSetReader) Read(p []byte) (n int, err error) {
psr.i += 1
if psr.i >= len(psr.parts) {
return 0, fmt.Errorf("Attempt to read from PartSet but no parts left")
return 0, io.EOF
}
psr.reader = bytes.NewReader(psr.parts[psr.i].Bytes)
return psr.Read(p)