(ctx context.Context, msgs map[string]struct{})
| 220 | } |
| 221 | |
| 222 | func (cl *client) publishMsgs(ctx context.Context, msgs map[string]struct{}) error { |
| 223 | for m := range msgs { |
| 224 | err := cl.publish(ctx, m) |
| 225 | if err != nil { |
| 226 | return err |
| 227 | } |
| 228 | } |
| 229 | return nil |
| 230 | } |
| 231 | |
| 232 | func (cl *client) nextMessage() (string, error) { |
| 233 | typ, b, err := cl.c.Read(context.Background()) |
no test coverage detected