Merge pull request #5582 from guggero/fix-js-healthcheck

build: fix JS health check and module git tag
This commit is contained in:
Oliver Gugger 2021-07-28 13:27:44 +02:00 committed by GitHub
commit ebabda6717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -59,6 +59,7 @@ you.
* [Bumped version of `github.com/miekg/dns` library to fix a Dependabot
alert](https://github.com/lightningnetwork/lnd/pull/5576).
* [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

2
go.mod
View file

@ -42,7 +42,7 @@ require (
github.com/lightningnetwork/lightning-onion v1.0.2-0.20210520211913-522b799e65b1
github.com/lightningnetwork/lnd/cert v1.0.3
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/queue v1.0.4
github.com/lightningnetwork/lnd/ticker v1.0.0

View file

@ -1,13 +1,15 @@
package healthcheck
import "fmt"
// AvailableDiskSpaceRatio returns ratio of available disk space to total
// capacity.
func AvailableDiskSpaceRatio(path string) (float64, error) {
func AvailableDiskSpaceRatio(_ string) (float64, error) {
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
}
// AvailableDiskSpace returns the available disk space in bytes of the given
// file system.
func AvailableDiskSpace(path string) (uint64, error) {
func AvailableDiskSpace(_ string) (uint64, error) {
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
}