From 08ca372b0a95025a5ab49ccb4ee51af1aa1185ff Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sun, 10 Nov 2024 17:23:17 +0100 Subject: dashboard: api refactor --- dashboard/inmemory.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/inmemory.go b/dashboard/inmemory.go index 0548494..5735211 100644 --- a/dashboard/inmemory.go +++ b/dashboard/inmemory.go @@ -115,7 +115,7 @@ func (m *inmemory) Join(auctionId string, return ErrAuctionNotReady } auction.commitments[bidderId] = commitment - auction.messages[bidderId] = make([]SignedMessage, auction.description.BitLength) + auction.messages[bidderId] = make([]SignedMessage, auction.description.Bitlength) return nil } @@ -178,7 +178,7 @@ func (m *inmemory) Publish(auctionId string, round uint8, message SignedMessage, if completed { auction.round += 1 - if auction.round == auction.description.BitLength { + if auction.round == auction.description.Bitlength { auction.state = AuctionStateFinished } } @@ -239,4 +239,4 @@ func (m *inmemory) Cancel(auctionId string, reason SignedMessage, publickey ed25 func (m *inmemory) Result(auctionId string) (price uint64, winner ed25519.PublicKey, e error) { return 0, nil, fmt.Errorf("Result not implemented") -} \ No newline at end of file +} -- cgit v1.2.3