Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
djq2
ECE 428 - Distributed Systems
Commits
a6e2e4e1
Commit
a6e2e4e1
authored
May 03, 2022
by
djq2
Browse files
Fin
parent
c40c3db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mp3/src/servers/coordinator.go
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
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment