mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-14 15:12:39 +02:00
healthcheck: fix missing import
This commit is contained in:
@ -59,6 +59,7 @@ you.
|
|||||||
* [Bumped version of `github.com/miekg/dns` library to fix a Dependabot
|
* [Bumped version of `github.com/miekg/dns` library to fix a Dependabot
|
||||||
alert](https://github.com/lightningnetwork/lnd/pull/5576).
|
alert](https://github.com/lightningnetwork/lnd/pull/5576).
|
||||||
* [Fixed timeout flakes in async payment benchmark tests](https://github.com/lightningnetwork/lnd/pull/5579).
|
* [Fixed timeout flakes in async payment benchmark tests](https://github.com/lightningnetwork/lnd/pull/5579).
|
||||||
|
* [Fixed a missing import and git tag in the healthcheck package](https://github.com/lightningnetwork/lnd/pull/5582).
|
||||||
|
|
||||||
## Database
|
## Database
|
||||||
|
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
package healthcheck
|
package healthcheck
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
// AvailableDiskSpaceRatio returns ratio of available disk space to total
|
// AvailableDiskSpaceRatio returns ratio of available disk space to total
|
||||||
// capacity.
|
// capacity.
|
||||||
func AvailableDiskSpaceRatio(path string) (float64, error) {
|
func AvailableDiskSpaceRatio(_ string) (float64, error) {
|
||||||
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
||||||
}
|
}
|
||||||
|
|
||||||
// AvailableDiskSpace returns the available disk space in bytes of the given
|
// AvailableDiskSpace returns the available disk space in bytes of the given
|
||||||
// file system.
|
// file system.
|
||||||
func AvailableDiskSpace(path string) (uint64, error) {
|
func AvailableDiskSpace(_ string) (uint64, error) {
|
||||||
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user