Rename backend subdir 'blobs' to 'data'

This commit is contained in:
Alexander Neumann 2014-11-16 13:22:19 +01:00
parent b403769ae8
commit 804cebde67
8 changed files with 22 additions and 31 deletions

View file

@ -35,14 +35,14 @@ func commandCat(be backend.Server, key *khepri.Key, args []string) error {
switch tpe {
case "blob":
// try id
data, err := ch.Load(backend.Blob, id)
data, err := ch.Load(backend.Data, id)
if err == nil {
_, err = os.Stdout.Write(data)
return err
}
// try storage id
buf, err := be.Get(backend.Blob, id)
buf, err := be.Get(backend.Data, id)
if err != nil {
return err
}