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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user