MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / SetAckTimeout

Method SetAckTimeout

internal/nodeagent/usage.go:60–64  ·  view source on GitHub ↗

SetAckTimeout 自定义等待 ack 的超时;<=0 时复用 interval。

(d time.Duration)

Source from the content-addressed store, hash-verified

58
59// SetAckTimeout 自定义等待 ack 的超时;<=0 时复用 interval。
60func (p *UsagePusher) SetAckTimeout(d time.Duration) {
61 if d > 0 {
62 p.ackWait = d
63 }
64}
65
66// SetSender 注入当前 session 的 Sender。传 nil 时下一轮 push 会被跳过。
67// 一般在 Config.OnConnected 回调里调用:

Calls

no outgoing calls

Tested by 5

TestE2E_UsagePushAckFunction · 0.76
TestE2E_MultiNodeFunction · 0.76