From 5a662d84f00c0c2693c18d333bab9d0fdda7e28e Mon Sep 17 00:00:00 2001 From: mishaz Date: Tue, 19 May 2015 00:37:11 +0000 Subject: [PATCH] Made HostPort() an explicit method to print the HostPort, so that String() can change in the future. --- services/datamanager/keep/keep.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/datamanager/keep/keep.go b/services/datamanager/keep/keep.go index 857ab86672..2c4eff56f6 100644 --- 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) } -- 2.30.2