use pilosa.ErrNotImplemented for unused interface implementations

This commit is contained in:
Travis 2020-05-10 18:50:05 -05:00
parent 9255d43e9a
commit d546b8ac01
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -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.