From d546b8ac015f423a6f469a2543fd1d4e0b8aff86 Mon Sep 17 00:00:00 2001 From: Travis Date: Sun, 10 May 2020 18:50:05 -0500 Subject: [PATCH] use pilosa.ErrNotImplemented for unused interface implementations --- translate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translate.go b/translate.go index a01d7f2e2..ea268bb68 100644 --- a/translate.go +++ b/translate.go @@ -415,19 +415,19 @@ func (s *InMemTranslateStore) EntryReader(ctx context.Context, offset uint64) (T } // WriteTo ensures that the TranslateStore implements io.WriterTo. -// TODO: It's not important that this be implemented. It would really +// It's not important that this be implemented. It would really // only be necessary if we wanted to test cluster resizing while using // an in-memory translate store. func (s *InMemTranslateStore) WriteTo(w io.Writer) (int64, error) { - return 0, nil + return 0, ErrNotImplemented } // ReadFrom ensures that the TranslateStore implements io.ReaderFrom. -// TODO: It's not important that this be implemented. It would really +// It's not important that this be implemented. It would really // only be necessary if we wanted to test cluster resizing while using // an in-memory translate store. func (s *InMemTranslateStore) ReadFrom(r io.Reader) (int64, error) { - return 0, nil + return 0, ErrNotImplemented } // MaxID returns the highest identifier in the store.