MCPcopy Create free account
hub / github.com/facebook/time / ChannelFromInt

Function ChannelFromInt

calnex/api/api.go:336–342  ·  view source on GitHub ↗

ChannelFromInt returns channel from int

(value int)

Source from the content-addressed store, hash-verified

334
335// ChannelFromInt returns channel from int
336func ChannelFromInt(value int) (*Channel, error) {
337 c, ok := channelFromInt[value]
338 if !ok {
339 return nil, ErrBadChannel
340 }
341 return &c, nil
342}
343
344// ChannelFromString returns channel from string
345func ChannelFromString(value string) (*Channel, error) {

Callers 2

chSetMethod · 0.92

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…