MCPcopy
hub / github.com/cubefs/cubefs / addr2Prof

Function addr2Prof

cli/cmd/flashnode.go:355–359  ·  view source on GitHub ↗

TODO: mandatory design prof http port is service port+1

(addr string)

Source from the content-addressed store, hash-verified

353
354// TODO: mandatory design prof http port is service port+1
355func addr2Prof(addr string) string {
356 arr := strings.SplitN(addr, ":", 2)
357 p, _ := strconv.ParseUint(arr[1], 10, 64)
358 return fmt.Sprintf("%s:%d", arr[0], p+1)
359}

Callers 5

newCmdFlashNodeHTTPStatFunction · 0.70
newCmdFlashNodeHTTPEvictFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected