passd rm unused flags
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user