Skip to content

Commit

Permalink
Merge branch 'release/v0.3.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
takama committed Apr 17, 2018
2 parents 2174793 + 9db0831 commit c8c0b81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
PROJECT=github.com/takama/backer

# Use the 0.0.0 tag for testing, it shouldn't clobber any release builds
RELEASE?=v0.3.8
RELEASE?=v0.3.9

BUILDTAGS=

Expand Down
2 changes: 1 addition & 1 deletion datastore/stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (stub *Stub) NewTournament(ID uint64, tx Transact) error {
if ok {
return ErrAlreadyExist
}
stub.tournaments[ID] = model.Tournament{ID: ID}
stub.tournaments[ID] = model.Tournament{ID: ID, Bidders: make([]model.Bidder, 0)}
if len(stub.ErrNew) == 0 {
return nil
}
Expand Down
3 changes: 2 additions & 1 deletion tournament/tournament.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func New(id uint64, ctrl datastore.Controller) (*Entry, error) {
tx.Rollback()
return nil, err
}
tournament = &model.Tournament{ID: id}
tournament = &model.Tournament{ID: id, Bidders: make([]model.Bidder, 0)}
}
entry.Tournament = *tournament

Expand Down Expand Up @@ -120,6 +120,7 @@ func (entry *Entry) Announce(deposit backer.Points) error {
entry.mutex.Lock()
defer entry.mutex.Unlock()
entry.Tournament.Deposit = tournament.Deposit
entry.Tournament.Bidders = tournament.Bidders

return nil
}
Expand Down

0 comments on commit c8c0b81

Please sign in to comment.