Method
updateMasterKey
(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool)
Source from the content-addressed store, hash-verified
| 132 | } |
| 133 | |
| 134 | func (d *dummyBackend) updateMasterKey(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool) error { |
| 135 | d.mutex.Lock() |
| 136 | defer d.mutex.Unlock() |
| 137 | d.masterKeys[id] = key |
| 138 | if d.updateMasterKeyHandler != nil { |
| 139 | return d.updateMasterKeyHandler(ctx, id, key) |
| 140 | } |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | func (d *dummyBackend) updateSlaveKey(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool) error { |
| 145 | d.mutex.Lock() |
Tested by
no test coverage detected