This commit is contained in:
Łukasz Magiera 2024-01-15 17:34:10 +01:00
parent a65ec1a9fb
commit a539b83512
3 changed files with 12 additions and 7 deletions

View File

@ -2,9 +2,10 @@ package hapi
import ( import (
"context" "context"
"time"
"github.com/filecoin-project/lotus/api/client" "github.com/filecoin-project/lotus/api/client"
cliutil "github.com/filecoin-project/lotus/cli/util" cliutil "github.com/filecoin-project/lotus/cli/util"
"time"
) )
func (a *app) watchRpc() { func (a *app) watchRpc() {

View File

@ -2,14 +2,15 @@ package hapi
import ( import (
"context" "context"
"github.com/filecoin-project/lotus/api/v1api"
"golang.org/x/xerrors"
"html/template" "html/template"
"net/http" "net/http"
"os" "os"
"sync" "sync"
"time" "time"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/api/v1api"
"github.com/filecoin-project/lotus/lib/harmony/harmonydb" "github.com/filecoin-project/lotus/lib/harmony/harmonydb"
) )

View File

@ -2,12 +2,15 @@ package hapi
import ( import (
"context" "context"
"github.com/BurntSushi/toml"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/lotus/chain/types"
"golang.org/x/xerrors"
"sort" "sort"
"time" "time"
"github.com/BurntSushi/toml"
"golang.org/x/xerrors"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/lotus/chain/types"
) )
const watchInterval = time.Second * 10 const watchInterval = time.Second * 10