passd rm unused flags
This commit is contained in:
@@ -15,22 +15,17 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
topicNameFlag = flag.String("topicName", "pentapass", "name of topic to join")
|
|
||||||
dbPath = flag.String("db", "./db", "db file path")
|
dbPath = flag.String("db", "./db", "db file path")
|
||||||
nameSpace = flag.String("namespace", "crdt", "namespace")
|
|
||||||
// netTopic = "globaldb-example-net"
|
|
||||||
// config = "globaldb-example"
|
|
||||||
debug = flag.Bool("debug", false, "log debug information")
|
debug = flag.Bool("debug", false, "log debug information")
|
||||||
//logger = logging.Logger("globaldb")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
InitLogger(*debug)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
data := *dbPath
|
data := *dbPath
|
||||||
|
|
||||||
InitLogger(*debug)
|
|
||||||
|
|
||||||
key, err := age.LoadOrGenerateKeys(*dbPath + "/age.key")
|
key, err := age.LoadOrGenerateKeys(*dbPath + "/age.key")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user