github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/heimdallapp/client.go (about) 1 package heimdallapp 2 3 import ( 4 "github.com/ethereum/go-ethereum/log" 5 6 "github.com/maticnetwork/heimdall/app" 7 "github.com/maticnetwork/heimdall/cmd/heimdalld/service" 8 ) 9 10 const ( 11 stateFetchLimit = 50 12 ) 13 14 type HeimdallAppClient struct { 15 hApp *app.HeimdallApp 16 } 17 18 func NewHeimdallAppClient() *HeimdallAppClient { 19 return &HeimdallAppClient{ 20 hApp: service.GetHeimdallApp(), 21 } 22 } 23 24 func (h *HeimdallAppClient) Close() { 25 // Nothing to close as of now 26 log.Warn("Shutdown detected, Closing Heimdall App conn") 27 }