projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aed4d13
)
Made HostPort() an explicit method to print the HostPort, so that String() can change...
author
mishaz <misha@curoverse.com>
Tue, 19 May 2015 00:37:11 +0000
(
00:37
+0000)
committer
mishaz <misha@curoverse.com>
Tue, 19 May 2015 00:37:11 +0000
(
00:37
+0000)
services/datamanager/keep/keep.go
patch
|
blob
|
history
diff --git
a/services/datamanager/keep/keep.go
b/services/datamanager/keep/keep.go
index 857ab8667290db3ddbc9eac3a31431e69bc43686..2c4eff56f6e61ccde11e0c72d08203373284a473 100644
(file)
--- a/
services/datamanager/keep/keep.go
+++ b/
services/datamanager/keep/keep.go
@@
-87,6
+87,10
@@
func init() {
// TODO(misha): Change this to include the UUID as well.
func (s ServerAddress) String() string {
+ return s.HostPort()
+}
+
+func (s ServerAddress) HostPort() string {
return fmt.Sprintf("%s:%d", s.Host, s.Port)
}