Make wifi collector fail gracefully if metrics not available
This commit is contained in:
parent
2884181cce
commit
d3089f2ce8
6 changed files with 101 additions and 26 deletions
5
vendor/github.com/mdlayher/wifi/client_others.go
generated
vendored
5
vendor/github.com/mdlayher/wifi/client_others.go
generated
vendored
|
|
@ -24,6 +24,11 @@ func newClient() (*client, error) {
|
|||
return nil, errUnimplemented
|
||||
}
|
||||
|
||||
// Close always returns an error.
|
||||
func (c *client) Close() error {
|
||||
return errUnimplemented
|
||||
}
|
||||
|
||||
// Interfaces always returns an error.
|
||||
func (c *client) Interfaces() ([]*Interface, error) {
|
||||
return nil, errUnimplemented
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue