From 5fc1583acc595ccb0b4f1c63b0319b860314404d Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 9 May 2015 13:35:55 +0200 Subject: [PATCH] Fix comments --- archiver.go | 6 +++--- cache.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archiver.go b/archiver.go index 103eedcb9..da0c5c4fe 100644 --- a/archiver.go +++ b/archiver.go @@ -55,7 +55,7 @@ func NewArchiver(repo *repo.Repository) *Archiver { return arch } -// Save stores a blob read from rd in the server. +// Save stores a blob read from rd in the repository. func (arch *Archiver) Save(t pack.BlobType, id backend.ID, length uint, rd io.Reader) error { debug.Log("Archiver.Save", "Save(%v, %v)\n", t, id.Str()) @@ -76,7 +76,7 @@ func (arch *Archiver) Save(t pack.BlobType, id backend.ID, length uint, rd io.Re return nil } -// SaveTreeJSON stores a tree in the server. +// SaveTreeJSON stores a tree in the repository. func (arch *Archiver) SaveTreeJSON(item interface{}) (backend.ID, error) { data, err := json.Marshal(item) if err != nil { @@ -631,7 +631,7 @@ func (arch *Archiver) Snapshot(p *Progress, paths []string, parentID backend.ID) sn.id = id debug.Log("Archiver.Snapshot", "saved snapshot %v", id.Str()) - // flush server + // flush repository err = arch.repo.Flush() if err != nil { return nil, nil, err diff --git a/cache.go b/cache.go index c1d3101dc..4084d09b0 100644 --- a/cache.go +++ b/cache.go @@ -13,7 +13,7 @@ import ( "github.com/restic/restic/repo" ) -// Cache is used to locally cache items from a server. +// Cache is used to locally cache items from a repository. type Cache struct { base string } @@ -105,7 +105,7 @@ func (c *Cache) purge(t backend.Type, subtype string, id backend.ID) error { return err } -// Clear removes information from the cache that isn't present in the server any more. +// Clear removes information from the cache that isn't present in the repository any more. func (c *Cache) Clear(repo *repo.Repository) error { list, err := c.list(backend.Snapshot) if err != nil {