(target entity.Id, newMetadata map[string]string)
| 200 | } |
| 201 | |
| 202 | func (c *BugCache) SetMetadata(target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*bug.Snapshot], error) { |
| 203 | author, err := c.getUserIdentity() |
| 204 | if err != nil { |
| 205 | return nil, err |
| 206 | } |
| 207 | |
| 208 | return c.SetMetadataRaw(author, time.Now().Unix(), target, newMetadata) |
| 209 | } |
| 210 | |
| 211 | func (c *BugCache) SetMetadataRaw(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*bug.Snapshot], error) { |
| 212 | c.mu.Lock() |
nothing calls this directly
no test coverage detected