refactor functions

This commit is contained in:
Chris Lu
2014-03-23 21:57:10 -07:00
parent b1f083cb60
commit a0955aa4dd
3 changed files with 6 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ type nameParams struct {
}
func walker(vid storage.VolumeId, n *storage.Needle, version storage.Version) (err error) {
key := storage.NewFileId(vid, n.Id, n.Cookie).String()
key := storage.NewFileIdFromNeedle(vid, n).String()
if tarFh != nil {
fnTmplBuf.Reset()
if err = fnTmpl.Execute(fnTmplBuf,