Commit 0fc00c67 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 63cd388d
...@@ -32,9 +32,9 @@ import ( ...@@ -32,9 +32,9 @@ import (
"lab.nexedi.com/kirr/neo/go/zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
// Backend is the interface for actual storage service that is used by neo.Storage node. // Backend is the interface for storage backend that is used by neo.Storage node.
// //
// XXX ok to reuse zodb.OpError for errors? or better it should be storage.OpError? // Backend methods should return zodb errors where appropriate.
type Backend interface { type Backend interface {
// LastTid should return the ID of the last committed transaction. // LastTid should return the ID of the last committed transaction.
LastTid(ctx context.Context) (zodb.Tid, error) LastTid(ctx context.Context) (zodb.Tid, error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment