From bbcf4e23b1c36915d4df92320df8c8232b8dde32 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Sun, 15 Feb 2015 04:45:03 -0800 Subject: [PATCH] feat(s3ds) declare the S3 datastore as threadsafe --- thirdparty/s3-datastore/datastore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thirdparty/s3-datastore/datastore.go b/thirdparty/s3-datastore/datastore.go index 0f3562356..22e2ccd25 100644 --- a/thirdparty/s3-datastore/datastore.go +++ b/thirdparty/s3-datastore/datastore.go @@ -8,7 +8,7 @@ import ( query "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/query" ) -var _ datastore.Datastore = &S3Datastore{} +var _ datastore.ThreadSafeDatastore = &S3Datastore{} var errTODO = errors.New("TODO") @@ -43,3 +43,5 @@ func (ds *S3Datastore) Delete(key datastore.Key) (err error) { func (ds *S3Datastore) Query(q query.Query) (query.Results, error) { return nil, errors.New("TODO implement query for s3 datastore?") } + +func (ds *S3Datastore) IsThreadSafe() {}