mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 17:55:36 +01:00
Merge pull request #5582 from guggero/fix-js-healthcheck
build: fix JS health check and module git tag
This commit is contained in:
commit
ebabda6717
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -42,7 +42,7 @@ require (
|
||||||
github.com/lightningnetwork/lightning-onion v1.0.2-0.20210520211913-522b799e65b1
|
github.com/lightningnetwork/lightning-onion v1.0.2-0.20210520211913-522b799e65b1
|
||||||
github.com/lightningnetwork/lnd/cert v1.0.3
|
github.com/lightningnetwork/lnd/cert v1.0.3
|
||||||
github.com/lightningnetwork/lnd/clock v1.0.1
|
github.com/lightningnetwork/lnd/clock v1.0.1
|
||||||
github.com/lightningnetwork/lnd/healthcheck v1.0.0
|
github.com/lightningnetwork/lnd/healthcheck v1.0.2
|
||||||
github.com/lightningnetwork/lnd/kvdb v1.0.1
|
github.com/lightningnetwork/lnd/kvdb v1.0.1
|
||||||
github.com/lightningnetwork/lnd/queue v1.0.4
|
github.com/lightningnetwork/lnd/queue v1.0.4
|
||||||
github.com/lightningnetwork/lnd/ticker v1.0.0
|
github.com/lightningnetwork/lnd/ticker v1.0.0
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue