passd rm unused flags

This commit is contained in:
2024-10-10 10:04:02 +02:00
parent 9968d69fdd
commit 18b2a65885

View File

@@ -15,22 +15,17 @@ import (
)
var (
topicNameFlag = flag.String("topicName", "pentapass", "name of topic to join")
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")
//logger = logging.Logger("globaldb")
)
func main() {
flag.Parse()
InitLogger(*debug)
ctx := context.Background()
data := *dbPath
InitLogger(*debug)
key, err := age.LoadOrGenerateKeys(*dbPath + "/age.key")
if err != nil {