Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECE 428 - 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
djq2
ECE 428 - Distributed Systems
Commits
a6e2e4e1
Commit
a6e2e4e1
authored
3 years ago
by
djq2
Browse files
Options
Downloads
Patches
Plain Diff
Fin
parent
c40c3db2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mp3/src/servers/coordinator.go
+2
-2
2 additions, 2 deletions
mp3/src/servers/coordinator.go
with
2 additions
and
2 deletions
mp3/src/servers/coordinator.go
+
2
−
2
View file @
a6e2e4e1
...
...
@@ -187,7 +187,7 @@ func (host *Server) Print_Accs() {
func
(
host
*
Server
)
Release
(
account
string
,
commit
bool
)
bool
{
val
,
ok
:=
host
.
AccountData
.
Load
(
account
)
acc
:=
val
.
(
*
Account
)
fmt
.
Println
(
account
,
" = "
,
acc
.
Balance
)
//
fmt.Println(account, " = ", acc.Balance)
if
ok
{
// Change commit status if necessary
if
commit
{
...
...
@@ -233,7 +233,7 @@ func (host *Server) client_listen() {
var
data_in
Client_msg
decoder
:=
gob
.
NewDecoder
(
*
host
.
Client
)
err
:=
decoder
.
Decode
(
&
data_in
)
fmt
.
Println
(
err
)
//
fmt.Println(err)
if
err
!=
nil
{
// fmt.Print("Failed read from client: ")
if
err
==
io
.
EOF
{
...
...
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