Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perso-distributed-systems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xavier.perret
perso-distributed-systems
Commits
241f2f8a
Commit
241f2f8a
authored
2 years ago
by
Xavier Perret
Browse files
Options
Downloads
Patches
Plain Diff
removed prints
parent
2ecaf178
No related branches found
No related tags found
1 merge request
!2
added file to separate client function from the server
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/command-line/userinput.go
+1
-4
1 addition, 4 deletions
app/command-line/userinput.go
with
1 addition
and
4 deletions
app/command-line/userinput.go
+
1
−
4
View file @
241f2f8a
...
...
@@ -66,7 +66,7 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
fmt
.
Println
(
"Please enter the operation you want to do"
)
fmt
.
Println
(
"1. Fabricate a fake transaction"
)
fmt
.
Println
(
"2. Print all transactions"
)
fmt
.
Println
(
"
4
. Exit"
)
fmt
.
Println
(
"
3
. Exit"
)
fmt
.
Print
(
"Your choice: "
)
_
,
err
:=
fmt
.
Scanln
(
&
operation
)
if
err
!=
nil
{
...
...
@@ -107,9 +107,6 @@ func ServerUserInputLoop(config Config, isAlsoServer bool, objectStorage Blob) {
utilities
.
PrintingDatabaseToConsole
(
database
)
break
case
"3"
:
fmt
.
Println
(
"You chose to ask for all transactions of a given node"
)
break
case
"4"
:
fmt
.
Println
(
"You chose to exit"
)
return
default
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment