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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xavier.perret
perso-distributed-systems
Compare revisions
241f2f8a46e32240b59926286f135e875e2cc91e to 75285a0b50bc97bea2bca5dfef17f7472ec79a40
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
xavier.perret/perso-distributed-systems
Select target project
No results found
75285a0b50bc97bea2bca5dfef17f7472ec79a40
Select Git revision
Swap
Target
xavier.perret/perso-distributed-systems
Select target project
xavier.perret/perso-distributed-systems
1 result
241f2f8a46e32240b59926286f135e875e2cc91e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
removed useless code
· 59969475
Xavier Perret
authored
2 years ago
59969475
fixed client
· 75285a0b
Xavier Perret
authored
2 years ago
75285a0b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/client.go
+1
-2
1 addition, 2 deletions
app/client.go
app/command-line/userinput.go
+1
-5
1 addition, 5 deletions
app/command-line/userinput.go
with
2 additions
and
7 deletions
app/client.go
View file @
75285a0b
...
...
@@ -44,6 +44,5 @@ func main() {
utilities
.
PrintConfig
(
clientConfig
)
command_line
.
ClientUserInputLoop
(
clientConfig
,
true
)
command_line
.
ClientUserInputLoop
(
clientConfig
,
false
)
}
This diff is collapsed.
Click to expand it.
app/command-line/userinput.go
View file @
75285a0b
...
...
@@ -136,11 +136,7 @@ func ClientUserInputLoop(clientConfig Config, isAlsoServer bool) {
switch
operation
{
case
"1"
:
fmt
.
Println
(
"You chose to create a transaction"
)
if
isAlsoServer
{
fmt
.
Println
(
"Not yet implemented!"
)
//newTrans := userCreatedTransaction(clientConfig)
//createTransaction(newTrans)
}
else
{
if
!
isAlsoServer
{
newTrans
:=
userCreatedTransaction
(
clientConfig
)
utilities
.
PrintNeighbors
(
clientConfig
.
Neighbours
)
fmt
.
Println
(
"TRANSACTION READY TO BE SENT"
)
...
...
This diff is collapsed.
Click to expand it.