(stackKey string, client *stacksapi.Client, logger *slog.Logger)
| 37 | } |
| 38 | |
| 39 | func newNotificationBatcher(stackKey string, client *stacksapi.Client, logger *slog.Logger) *notificationBatcher { |
| 40 | nb := ¬ificationBatcher{ |
| 41 | notifications: make(chan stacksapi.StackNotification, maxBufferSize), |
| 42 | stackKey: stackKey, |
| 43 | client: client, |
| 44 | logger: logger, |
| 45 | } |
| 46 | return nb |
| 47 | } |
| 48 | |
| 49 | func (nb *notificationBatcher) add(ctx context.Context, notification stacksapi.StackNotification) error { |
| 50 | select { |
no outgoing calls