Switch to lrpc and use context to handle signals

This commit is contained in:
2022-05-01 11:36:28 -07:00
parent 240e7a5ee4
commit 56dbf0540e
14 changed files with 265 additions and 702 deletions

View File

@@ -26,8 +26,6 @@ import (
"strconv"
"time"
rpcxlog "github.com/smallnest/rpcxlite/log"
"github.com/gen2brain/dlgs"
"github.com/knadh/koanf"
"github.com/mattn/go-isatty"
@@ -36,11 +34,6 @@ import (
"go.arsenm.dev/infinitime"
)
func init() {
// Disable rpcxlite logging
rpcxlog.SetDummyLogger()
}
var k = koanf.New(".")
//go:embed version.txt