func (s *OpencxAuctionServer) auctionTick(doneChan chan time.Time) {
	var err error

	// this basically makes sure we send something to doneChan
	// when we're done
	defer func() {
		doneChan <- time.Now()
	}()
	if err = s.CommitOrdersNewAuction(); err != nil {
		// TODO: What should happen in this case? How can we prevent this case?
		logging.Fatalf("Exchange commitment failed!!! Fatal error: %s", err)
	}

	return
}
// auctionTick commits to orders and creates a new auction, while making sure to send a "done" time to a channel afterwards
auctionTick commits to orders and creates a new auction, while making sure to send a "done" time to a channel afterwards
// auctionTick commits to orders and creates a new auction while making sure to send a " done " time to a channel afterwards
func (s *OpencxAuctionServer) auctionTick(doneChan chan time.Time) {
	var err error
	defer func() {
		doneChan <- time.Now()
	}()
	if err = s.CommitOrdersNewAuction(); err != nil {
		logging.Fatalf("Exchange commitment failed!!! Fatal error: %s", err)
	}
	return
}
func ( s * OpencxAuctionServer ) auctionTick ( doneChan chan time . Time ) { var err error defer func ( ) { doneChan <- time . Now ( ) } ( ) if err = s . CommitOrdersNewAuction ( ) ; err != nil { logging . Fatalf ( " " , err ) } return }
auctionTick commits to orders and creates a new auction, while making sure to send a "done" time to a channel afterwards
auctionTick commits to orders and creates a new auction while making sure to send a " done " time to a channel afterwards
// this basically makes sure we send something to doneChan // when we're done // TODO: What should happen in this case? How can we prevent this case?