mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
16 lines
393 B
Go
16 lines
393 B
Go
package datastore2
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
|
|
)
|
|
|
|
// ClaimThreadSafe claims that a Datastore is threadsafe, even when
|
|
// it's type does not guarantee this. Use carefully.
|
|
type ClaimThreadSafe struct {
|
|
datastore.BatchingDatastore
|
|
}
|
|
|
|
var _ datastore.ThreadSafeDatastore = ClaimThreadSafe{}
|
|
|
|
func (ClaimThreadSafe) IsThreadSafe() {}
|