Skip to content
Snippets Groups Projects
Commit 241f2f8a authored by Xavier Perret's avatar Xavier Perret
Browse files

removed prints

parent 2ecaf178
Branches
Tags
1 merge request!2added file to separate client function from the server
...@@ -66,7 +66,7 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) { ...@@ -66,7 +66,7 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
fmt.Println("Please enter the operation you want to do") fmt.Println("Please enter the operation you want to do")
fmt.Println("1. Fabricate a fake transaction") fmt.Println("1. Fabricate a fake transaction")
fmt.Println("2. Print all transactions") fmt.Println("2. Print all transactions")
fmt.Println("4. Exit") fmt.Println("3. Exit")
fmt.Print("Your choice: ") fmt.Print("Your choice: ")
_, err := fmt.Scanln(&operation) _, err := fmt.Scanln(&operation)
if err != nil { if err != nil {
...@@ -107,9 +107,6 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) { ...@@ -107,9 +107,6 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
utilities.PrintingDatabaseToConsole(database) utilities.PrintingDatabaseToConsole(database)
break break
case "3": case "3":
fmt.Println("You chose to ask for all transactions of a given node")
break
case "4":
fmt.Println("You chose to exit") fmt.Println("You chose to exit")
return return
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment