File Sharing MVP #384

Merged
sarah merged 52 commits from filesharing into master 2021-09-30 00:57:14 +00:00
1 changed files with 7 additions and 6 deletions
Showing only changes of commit e967f151ee - Show all commits

View File

@ -199,15 +199,16 @@ func (ta *TokenBoardClient) MakePayment() error {
conn.Close() conn.Close()
return nil return nil
} }
log.Errorf("invalid case of powapp. this should not happen")
return errors.New("invalid cast of powapp. this should never happen")
} }
} else { log.Debugf("could not connect to payment server %v..trying again")
log.Debugf("failed to make a connection. trying again...")
// it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice
time.Sleep(time.Second)
return ta.MakePayment() return ta.MakePayment()
} }
log.Debugf("Error making payment: to %v %v", ta.tokenServiceOnion, err) log.Debugf("failed to make a connection. trying again...")
return err // it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice
time.Sleep(time.Second)
return ta.MakePayment()
} }
// NextToken retrieves the next token // NextToken retrieves the next token