projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '18994-cwl-basename' refs #18994
[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 a8afea096109531ad0e27bf4c31e5b26010c8538..c46b7185e67958b6fc91bb6531364d11a9ff5238 100644
(file)
--- a/
sdk/go/keepclient/root_sorter.go
+++ b/
sdk/go/keepclient/root_sorter.go
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
package keepclient
import (
package keepclient
import (
@@
-29,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 {