Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudbase/garm
/ loop
Method
loop
database/watcher/watcher.go:192–204 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
190
}
191
192
func
(w *watcher) loop() {
193
defer
func
() {
194
w.Close()
195
}()
196
for
{
197
select
{
198
case
<-w.quit:
199
return
200
case
<-w.ctx.Done():
201
return
202
}
203
}
204
}
Callers
1
InitWatcher
Function · 0.95
Calls
2
Close
Method · 0.95
Done
Method · 0.45
Tested by
no test coverage detected