Skip to content

Commit

Permalink
feat: add data storage directory (#907)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Dec 9, 2021
1 parent 866f627 commit 778b8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func New(opt *config.DaemonOption, d dfpath.Dfpath) (Daemon, error) {
}

// Storage.Option.DataPath is same with Daemon DataDir
opt.Storage.DataPath = d.WorkHome()
opt.Storage.DataPath = d.DataDir()
storageManager, err := storage.NewStorageManager(opt.Storage.StoreStrategy, &opt.Storage,
/* gc callback */
func(request storage.CommonTaskRequest) {
Expand Down

0 comments on commit 778b8bd

Please sign in to comment.