()
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 66 | func WatchComDB() (bool, error) { |
| 67 | functionName := "WatchComDB" |
nothing calls this directly
no test coverage detected