github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/util/datastore2/threadsafe.go (about)

     1  package datastore2
     2  
     3  import (
     4  	"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
     5  )
     6  
     7  // ClaimThreadSafe claims that a Datastore is threadsafe, even when
     8  // it's type does not guarantee this. Use carefully.
     9  type ClaimThreadSafe struct {
    10  	datastore.BatchingDatastore
    11  }
    12  
    13  var _ datastore.ThreadSafeDatastore = ClaimThreadSafe{}
    14  
    15  func (ClaimThreadSafe) IsThreadSafe() {}