Skip to content

Commit 0367a55

Browse files
committed
remove thread-safe assertion
Merge before: ipfs/go-datastore#120
1 parent f4549af commit 0367a55

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

redis.go

-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ import (
1111
query "github.com/ipfs/go-datastore/query"
1212
)
1313

14-
var _ datastore.Datastore = &Datastore{}
15-
var _ datastore.ThreadSafeDatastore = &Datastore{}
16-
1714
var ErrInvalidType = errors.New("redis datastore: invalid type error. this datastore only supports []byte values")
1815

1916
func NewExpiringDatastore(client *redis.Client, ttl time.Duration) (*Datastore, error) {
@@ -82,8 +79,6 @@ func (ds *Datastore) Query(q query.Query) (query.Results, error) {
8279
return nil, errors.New("TODO implement query for redis datastore?")
8380
}
8481

85-
func (ds *Datastore) IsThreadSafe() {}
86-
8782
func (ds *Datastore) Batch() (datastore.Batch, error) {
8883
return nil, datastore.ErrBatchUnsupported
8984
}

0 commit comments

Comments
 (0)