projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15370: Merge branch 'main' into 15370-loopback-dispatchcloud
[arvados.git]
/
sdk
/
go
/
keepclient
/
root_sorter.go
diff --git
a/sdk/go/keepclient/root_sorter.go
b/sdk/go/keepclient/root_sorter.go
index afeb8028496532dc66550ddddf4bd15b285bc7e9..c46b7185e67958b6fc91bb6531364d11a9ff5238 100644
(file)
--- a/
sdk/go/keepclient/root_sorter.go
+++ b/
sdk/go/keepclient/root_sorter.go
@@
-33,10
+33,9
@@
func NewRootSorter(serviceRoots map[string]string, hash string) *RootSorter {
func (rs RootSorter) getWeight(hash string, uuid string) string {
if len(uuid) == 27 {
return Md5String(hash + uuid[12:])
func (rs RootSorter) getWeight(hash string, uuid string) string {
if len(uuid) == 27 {
return Md5String(hash + uuid[12:])
- } else {
- // Only useful for testing, a set of one service root, etc.
- return Md5String(hash + uuid)
}
}
+ // Only useful for testing, a set of one service root, etc.
+ return Md5String(hash + uuid)
}
func (rs RootSorter) GetSortedRoots() []string {
}
func (rs RootSorter) GetSortedRoots() []string {