mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-09 09:23:07 +00:00
adding constant
This commit is contained in:
parent
faad089d7d
commit
c1f42468f2
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user