mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 04:30:09 +00:00
fix: bugs
This commit is contained in:
@@ -18,6 +18,7 @@ type Trigger struct {
|
||||
remoteId int
|
||||
remoteC *conf.Remote
|
||||
hashs cmap.ConcurrentMap[string, string]
|
||||
order chan int
|
||||
}
|
||||
|
||||
func NewTrigger(
|
||||
@@ -33,6 +34,7 @@ func NewTrigger(
|
||||
h: h,
|
||||
p: p,
|
||||
remoteC: rm,
|
||||
hashs: cmap.New[string](),
|
||||
}
|
||||
|
||||
// add pull node cron task
|
||||
@@ -67,6 +69,7 @@ func (t *Trigger) Start() error {
|
||||
Baseurl: r.APIHost,
|
||||
NodeId: r.NodeID,
|
||||
NodeType: r.NodeType,
|
||||
Key: r.Key,
|
||||
Timeout: r.Timeout,
|
||||
})
|
||||
if rsp.Err != nil {
|
||||
|
||||
Reference in New Issue
Block a user