We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0a565 commit 17f9b1fCopy full SHA for 17f9b1f
usage/ping.go
@@ -39,20 +39,23 @@ const (
39
func PingCheck(engineName, category string, pingImmediately bool) {
40
// Create a new usage field
41
u := New()
42
- pingSender := u.CommonBuild(engineName).
43
- InstallBuilder(true).
44
- SetCategory(category)
45
46
if pingImmediately {
47
// Ping immediately.
48
- pingSender.Send()
+ u.CommonBuild(engineName).
+ InstallBuilder(true).
+ SetCategory(category).
+ Send()
49
}
50
51
duration := getPingPeriod()
52
ticker := time.NewTicker(duration)
53
for range ticker.C {
54
// Ping periodically, starting at 'duration'.
55
56
57
58
59
60
61
0 commit comments