Skip to content
Snippets Groups Projects

made lower paralell regs unique to js and hacked increase in num registrations...

Merged Benjamin Wenger requested to merge delayedRegistration into release
23 files
+ 179
66
Compare changes
  • Side-by-side
  • Inline
Files
23
+ 21
0
@@ -11,6 +11,7 @@ import (
"crypto/ed25519"
"encoding/base64"
"encoding/json"
jww "github.com/spf13/jwalterweatherman"
"sync"
"time"
@@ -234,6 +235,16 @@ func NewChannelsManagerGoEventModel(cmixID int, privateIdentity []byte,
return nil, err
}
// fixme: remove this, make it called by the javascript
// hack to get to release late at night
go func() {
time.Sleep(3 * time.Second)
localErr := user.IncreaseParallelNodeRegistration(13)
if localErr != nil {
jww.ERROR.Printf(localErr.Error())
}
}()
// Add channel to singleton and return
return channelManagerTrackerSingleton.make(m), nil
}
@@ -267,6 +278,16 @@ func LoadChannelsManagerGoEventModel(cmixID int, storageTag string,
return nil, err
}
// fixme: remove this, make it called by the javascript
// hack to get to release late at night
go func() {
time.Sleep(3 * time.Second)
localErr := user.IncreaseParallelNodeRegistration(13)
if localErr != nil {
jww.ERROR.Printf(localErr.Error())
}
}()
// Add channel to singleton and return
return channelManagerTrackerSingleton.make(m), nil
}
Loading