(c io.Closer, resource string)
| 22 | ) |
| 23 | |
| 24 | func closeWithLog(c io.Closer, resource string) { |
| 25 | if c != nil { |
| 26 | if err := c.Close(); err != nil { |
| 27 | logrus.Debugf("Failed to close %s: %v", resource, err) |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | type Client struct { |
| 33 | nbClient *netbird.Client |
no test coverage detected