lib/db,cmd/stindex: Expose VersionList and use it in stindex

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3231
This commit is contained in:
Audrius Butkevicius
2016-05-31 19:29:26 +00:00
committed by Jakob Borg
parent 1612baca92
commit 6f63909c65
5 changed files with 21 additions and 19 deletions

View File

@@ -51,11 +51,11 @@ type fileVersion struct {
device []byte
}
type versionList struct {
type VersionList struct {
versions []fileVersion
}
func (l versionList) String() string {
func (l VersionList) String() string {
var b bytes.Buffer
var id protocol.DeviceID
b.WriteString("{")