12260: Update comments to match real func/type names.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 16 Oct 2017 14:44:54 +0000 (10:44 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Mon, 16 Oct 2017 14:44:54 +0000 (10:44 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

sdk/go/arvados/config.go

index f1a72897fae0007f5166d8094fb6832368aa7953..ca0df1fc907b86ed4bec09b3a05c1697a6295cd4 100644 (file)
@@ -50,8 +50,8 @@ type Cluster struct {
        SystemNodes     map[string]SystemNode
 }
 
-// GetThisSystemNodeConfig returns a SystemNode for the node we're
-// running on right now.
+// GetThisSystemNode returns a SystemNode for the node we're running
+// on right now.
 func (cc *Cluster) GetThisSystemNode() (*SystemNode, error) {
        hostname, err := os.Hostname()
        if err != nil {
@@ -60,9 +60,9 @@ func (cc *Cluster) GetThisSystemNode() (*SystemNode, error) {
        return cc.GetSystemNode(hostname)
 }
 
-// GetSystemNodeConfig returns a NodeConfig for the given node. An
-// error is returned if the appropriate configuration can't be
-// determined (e.g., this does not appear to be a system node).
+// GetSystemNode returns a SystemNode for the given hostname. An error
+// is returned if the appropriate configuration can't be determined
+// (e.g., this does not appear to be a system node).
 func (cc *Cluster) GetSystemNode(node string) (*SystemNode, error) {
        if cfg, ok := cc.SystemNodes[node]; ok {
                return &cfg, nil