()
| 35 | } |
| 36 | |
| 37 | func (s *Sentinel) IsCanceled() bool { |
| 38 | select { |
| 39 | case <-s.Context.Done(): |
| 40 | return true |
| 41 | default: |
| 42 | return false |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (s *Sentinel) NodeName(gid int) string { |
| 47 | return fmt.Sprintf("%s-%d", s.Product, gid) |
no test coverage detected