1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00

Automatically download and run migrations if needed

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
Jeromy
2016-07-01 16:10:19 -07:00
parent 0e4c19558f
commit a3bd3bc364
7 changed files with 382 additions and 16 deletions

View File

@ -1,6 +1,8 @@
package corerepo
import (
"fmt"
"github.com/ipfs/go-ipfs/core"
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
context "gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
@ -40,6 +42,6 @@ func RepoStat(n *core.IpfsNode, ctx context.Context) (*Stat, error) {
NumObjects: count,
RepoSize: usage,
RepoPath: path,
Version: "fs-repo@" + fsrepo.RepoVersion,
Version: fmt.Sprintf("fs-repo@%d", fsrepo.RepoVersion),
}, nil
}