@cryptotaxi247 / kubo / commits / bbcf4e23b

feat(s3ds) declare the S3 datastore as threadsafe

Brian Tiger Chow committed Feb 15, 2015 at 04:45 UTC bbcf4e23b1c36915d4df92320df8c8232b8dde32
1 file changed +3 -1
thirdparty/s3-datastore/datastore.go
+3 -1
@@ -8,7 +8,7 @@ import (
8 query "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/query"
9 )
10
11 -var _ datastore.Datastore = &S3Datastore{}
11 +var _ datastore.ThreadSafeDatastore = &S3Datastore{}
12
13 var errTODO = errors.New("TODO")
14
@@ -43,3 +43,5 @@ func (ds *S3Datastore) Delete(key datastore.Key) (err error) {
43 func (ds *S3Datastore) Query(q query.Query) (query.Results, error) {
44 return nil, errors.New("TODO implement query for s3 datastore?")
45 }
46 +
47 +func (ds *S3Datastore) IsThreadSafe() {}