[ARVADOS] updated: 841bd266812983c8edd98a480b116c50000f47b9

git at public.curoverse.com git at public.curoverse.com
Wed Oct 7 13:52:01 EDT 2015


Summary of changes:
 sdk/go/arvadosclient/arvadosclient.go | 4 ++--
 tools/keep-rsync/keep-rsync.go        | 4 ++--
 tools/keep-rsync/keep-rsync_test.go   | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)

       via  841bd266812983c8edd98a480b116c50000f47b9 (commit)
      from  99ca2640c855e88c7b08c3509b21be9e160ccac8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 841bd266812983c8edd98a480b116c50000f47b9
Author: radhika <radhika at curoverse.com>
Date:   Wed Oct 7 13:51:16 2015 -0400

    7167: rename MakeArvadosClientWithConfig as New

diff --git a/sdk/go/arvadosclient/arvadosclient.go b/sdk/go/arvadosclient/arvadosclient.go
index cc99efd..af8bce4 100644
--- a/sdk/go/arvadosclient/arvadosclient.go
+++ b/sdk/go/arvadosclient/arvadosclient.go
@@ -102,11 +102,11 @@ func MakeArvadosClient() (ac ArvadosClient, err error) {
 	config.APIHostInsecure = matchTrue.MatchString(os.Getenv("ARVADOS_API_HOST_INSECURE"))
 	config.ExternalClient = matchTrue.MatchString(os.Getenv("ARVADOS_EXTERNAL_CLIENT"))
 
-	return MakeArvadosClientWithConfig(config)
+	return New(config)
 }
 
 // Create a new ArvadosClient, using the given input parameters.
-func MakeArvadosClientWithConfig(config APIConfig) (ac ArvadosClient, err error) {
+func New(config APIConfig) (ac ArvadosClient, err error) {
 	ac = ArvadosClient{
 		ApiServer:   config.APIHost,
 		ApiToken:    config.APIToken,
diff --git a/tools/keep-rsync/keep-rsync.go b/tools/keep-rsync/keep-rsync.go
index 1f00a9f..6bfbbac 100644
--- a/tools/keep-rsync/keep-rsync.go
+++ b/tools/keep-rsync/keep-rsync.go
@@ -137,13 +137,13 @@ var (
 // Initializes keep-rsync using the config provided
 func initializeKeepRsync() (err error) {
 	// arvSrc from srcConfig
-	arvSrc, err = arvadosclient.MakeArvadosClientWithConfig(srcConfig)
+	arvSrc, err = arvadosclient.New(srcConfig)
 	if err != nil {
 		return
 	}
 
 	// arvDst from dstConfig
-	arvDst, err = arvadosclient.MakeArvadosClientWithConfig(dstConfig)
+	arvDst, err = arvadosclient.New(dstConfig)
 	if err != nil {
 		return
 	}
diff --git a/tools/keep-rsync/keep-rsync_test.go b/tools/keep-rsync/keep-rsync_test.go
index ae80f45..4fdc6a8 100644
--- a/tools/keep-rsync/keep-rsync_test.go
+++ b/tools/keep-rsync/keep-rsync_test.go
@@ -5,7 +5,6 @@ import (
 	"fmt"
 	"io/ioutil"
 	"os"
-	"regexp"
 	"testing"
 
 	"git.curoverse.com/arvados.git/sdk/go/arvadostest"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list