diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 19:55:01 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 19:55:01 +0200 |
commit | 19da30a8ff233285a79df9f1da8b0d88d99eb626 (patch) | |
tree | bdb2313cc29381afbad9af75bd273c5ec6d9f24b /examples | |
parent | 65427f64599e9383ab926aed75fc02f2db32022d (diff) | |
download | go-git-19da30a8ff233285a79df9f1da8b0d88d99eb626.tar.gz |
core: ObjectStorage.Writer
Diffstat (limited to 'examples')
-rw-r--r-- | examples/storage/aerospike/storage.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/storage/aerospike/storage.go b/examples/storage/aerospike/storage.go index b57d932..a62d1dc 100644 --- a/examples/storage/aerospike/storage.go +++ b/examples/storage/aerospike/storage.go @@ -70,6 +70,11 @@ func (s *ObjectStorage) NewObject() core.Object { return &core.MemoryObject{} } +// Writer method not supported, this method is optional to implemented. +func (s *ObjectStorage) Writer() (io.WriteCloser, error) { + return nil, core.ErrNotImplemented +} + func (s *ObjectStorage) Set(obj core.Object) (core.Hash, error) { key, err := s.buildKey(obj.Hash(), obj.Type()) if err != nil { |