adding constant

This commit is contained in:
Gabriel mermelstein 2024-12-13 13:01:16 +01:00
parent faad089d7d
commit c1f42468f2
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -327,6 +327,7 @@ import (
)
const requestTimeout = 30 * time.Second
const MsgChanBufferSize = 100
type WakuConfig struct {
Host string `json:"host,omitempty"`
@ -494,7 +495,7 @@ func newWakuNode(ctx context.Context, config *WakuConfig, logger *zap.Logger) (*
wg.Add(1)
n.wakuCtx = C.cGoWakuNew(cJsonConfig, resp)
n.MsgChan = make(chan common.Envelope, 100)
n.MsgChan = make(chan common.Envelope, MsgChanBufferSize)
n.logger = logger.Named("nwaku")
wg.Wait()