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 authored and GitHub committed 2021-07-28 13:27:44 +02:00
commit ebabda6717
3 files changed
+6 -3

No files matched your search

@@ -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
+1 -1
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
+4 -2
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")
}