(ctx context.Context, resources ...*gateway.DynamicRelease)
| 92 | } |
| 93 | |
| 94 | func (d *DynamicClient) Offline(ctx context.Context, resources ...*gateway.DynamicRelease) error { |
| 95 | err := d.client.Begin(ctx) |
| 96 | if err != nil { |
| 97 | return err |
| 98 | } |
| 99 | for _, r := range resources { |
| 100 | err = d.client.Del(ctx, genWorkerID(r.ID, d.profession)) |
| 101 | if err != nil { |
| 102 | d.client.Rollback(ctx) |
| 103 | return err |
| 104 | } |
| 105 | } |
| 106 | return d.client.Commit(ctx) |
| 107 | } |
nothing calls this directly
no test coverage detected