Additional checks and debug output

This commit is contained in:
obscuren
2014-12-08 14:25:52 +01:00
parent e3a8412df3
commit 76842b0df8
3 changed files with 14 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
DefaultTtl = 50 * time.Second
DefaultPow = 50 * time.Millisecond
)
type Envelope struct {
@ -56,7 +56,7 @@ func NewEnvelope(ttl time.Duration, topics [][]byte, data *Message) *Envelope {
}
func (self *Envelope) Seal() {
self.proveWork(DefaultTtl)
self.proveWork(DefaultPow)
}
func (self *Envelope) proveWork(dura time.Duration) {