From 19da30a8ff233285a79df9f1da8b0d88d99eb626 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 5 Sep 2016 19:55:01 +0200 Subject: core: ObjectStorage.Writer --- examples/storage/aerospike/storage.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/storage/aerospike/storage.go') 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 { -- cgit