MCPcopy Create free account
hub / github.com/Pluralith/pluralith-cli / WatchComDBFallback

Function WatchComDBFallback

app/pkg/comdb/WatchComDB.go:44–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func WatchComDBFallback() (bool, error) {
45 functionName := "WatchComDBFallback"
46
47 for {
48 status, processErr := ProcessEvents()
49 if processErr != nil {
50 return false, fmt.Errorf("processing events failed -> %v: %w", functionName, processErr)
51 }
52
53 if status == "confirmed" {
54 return true, nil
55 }
56
57 if status == "canceled" {
58 return false, nil
59 }
60
61 // Debounce ComDB reading with infinite while loop
62 time.Sleep(1000 * time.Millisecond)
63 }
64}
65
66func WatchComDB() (bool, error) {
67 functionName := "WatchComDB"

Callers

nothing calls this directly

Calls 1

ProcessEventsFunction · 0.85

Tested by

no test coverage detected