OSDN Git Service

update
[bytom/shuttle.git] / cmd / main.go
index 3d5e0a7..440ae22 100644 (file)
@@ -2,7 +2,6 @@ package main
 
 import (
        "os"
-       "runtime"
 
        "github.com/spf13/cobra"
 )
@@ -19,12 +18,12 @@ var swapCmd = &cobra.Command{
 }
 
 func main() {
-       runtime.GOMAXPROCS(runtime.NumCPU())
-
        swapCmd.AddCommand(deployCmd)
        swapCmd.AddCommand(callCmd)
+       swapCmd.AddCommand(cancelCmd)
        swapCmd.AddCommand(deployHTLCCmd)
        swapCmd.AddCommand(callHTLCCmd)
+       swapCmd.AddCommand(cancelHTLCCmd)
        if err := swapCmd.Execute(); err != nil {
                os.Exit(0)
        }