waku/v2/protocol/rln/group_manager/dynamic/dynamic.go
Method DynamicGroupManager.handler
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (gm *DynamicGroupManager) handler(events []*contracts.RLNMemberRegistered, latestProcessBlock uint64) error {
gm.lastBlockProcessedMutex.Lock()
defer gm.lastBlockProcessedMutex.Unlock()
toRemoveTable := om.New()
Function NewDynamicGroupManager
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ethClientAddr string,
memContractAddr common.Address,
membershipIndexToLoad *uint,
appKeystore *keystore.AppKeystore,
keystorePassword string,
Method DynamicGroupManager.loadCredential
has 6 return statements (exceeds 4 allowed). Open
Open
func (gm *DynamicGroupManager) loadCredential(ctx context.Context) error {
if gm.appKeystore == nil {
gm.log.Warn("no credentials were loaded. Node will only validate messages, but wont be able to generate proofs and attach them to messages")
return nil
}
Method DynamicGroupManager.Start
has 6 return statements (exceeds 4 allowed). Open
Open
func (gm *DynamicGroupManager) Start(ctx context.Context) error {
if gm.cancel != nil {
return errors.New("already started")
}