(c *oc.AddPaths, a *api.AddPaths)
| 961 | } |
| 962 | |
| 963 | func readAddPathsFromAPIStruct(c *oc.AddPaths, a *api.AddPaths) { |
| 964 | if c == nil || a == nil { |
| 965 | return |
| 966 | } |
| 967 | if a.Config != nil { |
| 968 | c.Config.Receive = a.Config.Receive |
| 969 | c.Config.SendMax = uint8(a.Config.SendMax) |
| 970 | } |
| 971 | } |
| 972 | |
| 973 | func PeerTypeFromApi(a api.PeerType) (oc.PeerType, error) { |
| 974 | switch a { |
no outgoing calls
no test coverage detected
searching dependent graphs…