94fc68cbb169420eb2b4665d7754286c7eea1f60 — Thomas Sileo 9 days ago 29c63fc
deps: update deps
4 files changed, 15 insertions(+), 2 deletions(-)

M go.mod
M go.sum
M vendor/a4.io/blobsfile/blobsfile.go
M vendor/modules.txt
M go.mod => go.mod +1 -1
@@ 3,7 3,7 @@
 replace github.com/go-interpreter/wagon v0.0.0 => github.com/perlin-network/wagon v0.3.1-0.20180825141017-f8cb99b55a39
 
 require (
-	a4.io/blobsfile v0.3.2
+	a4.io/blobsfile v0.3.3
 	a4.io/gluapp v0.0.0-20190530193846-2ad05291e3be
 	a4.io/gluarequire2 v0.0.0-20170611121149-66e0eb2c6a9f
 	a4.io/go/indieauth v1.0.0

M go.sum => go.sum +2 -0
@@ 6,6 6,8 @@
 a4.io/blobsfile v0.3.1/go.mod h1:Jy00okG1uHZQ5MN9WskYFFffuDFq4UbHNb0aWRqWo9c=
 a4.io/blobsfile v0.3.2 h1:p+Wm8aOsV01kYhyJFCiNGga42fi+vAZ587ljb4bhK94=
 a4.io/blobsfile v0.3.2/go.mod h1:ZHwdtHHOeCbaP/dpPnA1FAUrrwXG9GX2ju3OrbufCjQ=
+a4.io/blobsfile v0.3.3 h1:0xmSR3jKnZUHjBml3YuWtA45YiLFHB3WkHObC2x2xLw=
+a4.io/blobsfile v0.3.3/go.mod h1:ZHwdtHHOeCbaP/dpPnA1FAUrrwXG9GX2ju3OrbufCjQ=
 a4.io/blobstash v0.0.0-20181216235946-aa2d4a59f200/go.mod h1:PVI3EM/VmUQAz7pbz/govGO4gHypTF5YWhS56qETj+M=
 a4.io/blobstash v0.0.0-20181218201750-765e41187e8a/go.mod h1:QH1JUxPtdWiC/hCXrfzS03p5tX9mqALuBzUd2yYflso=
 a4.io/blobstash v0.0.0-20181225194431-69866d0dc5f5/go.mod h1:YtIAw8g6uiD0ODIvwJWSmEoKpx3M1cZLIiqrhh9NjSU=

M vendor/a4.io/blobsfile/blobsfile.go => vendor/a4.io/blobsfile/blobsfile.go +11 -0
@@ 248,6 248,7 @@
 type Blob struct {
 	Hash string
 	Size int
+	N    int
 }
 
 // New intializes a new BlobsFileBackend.


@@ 306,6 307,14 @@
 	return true, nil
 }
 
+func (backend *BlobsFiles) SealedPacks() []string {
+	packs := []string{}
+	for i := 0; i < backend.n-1; i++ {
+		packs = append(packs, backend.filename(i))
+	}
+	return packs
+}
+
 func (backend *BlobsFiles) iterOpenFiles() (files []*os.File) {
 	for _, f := range backend.files {
 		files = append(files, f)


@@ 1446,6 1455,7 @@
 		blobs <- &Blob{
 			Hash: hash,
 			Size: blobPos.blobSize,
+			N:    blobPos.n,
 		}
 
 		i++


@@ 1491,6 1501,7 @@
 		blobs <- &Blob{
 			Hash: hash,
 			Size: blobPos.blobSize,
+			N:    blobPos.n,
 		}
 
 		i++

M vendor/modules.txt => vendor/modules.txt +1 -1
@@ 1,4 1,4 @@
-# a4.io/blobsfile v0.3.2
+# a4.io/blobsfile v0.3.3
 a4.io/blobsfile
 # a4.io/gluapp v0.0.0-20190530193846-2ad05291e3be
 a4.io/gluapp