mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-07 16:33:09 +00:00
fixing hash to bytes conversion and increasing chan sizes (#32)
This commit is contained in:
parent
1187190ee0
commit
46b1648912
@ -35,5 +35,10 @@ func (h MessageHash) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h MessageHash) Bytes() ([]byte, error) {
|
func (h MessageHash) Bytes() ([]byte, error) {
|
||||||
return hex.DecodeString(string(h))
|
s := string(h)
|
||||||
|
// Remove 0x prefix if present
|
||||||
|
if len(s) >= 2 && s[:2] == "0x" {
|
||||||
|
s = s[2:]
|
||||||
|
}
|
||||||
|
return hex.DecodeString(s)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -337,9 +337,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const requestTimeout = 30 * time.Second
|
const requestTimeout = 30 * time.Second
|
||||||
const MsgChanBufferSize = 100
|
const MsgChanBufferSize = 1024
|
||||||
const TopicHealthChanBufferSize = 100
|
const TopicHealthChanBufferSize = 1024
|
||||||
const ConnectionChangeChanBufferSize = 100
|
const ConnectionChangeChanBufferSize = 1024
|
||||||
|
|
||||||
type WakuConfig struct {
|
type WakuConfig struct {
|
||||||
Host string `json:"host,omitempty"`
|
Host string `json:"host,omitempty"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user