(channel string)
| 612 | } |
| 613 | |
| 614 | func (c *Cache) InitializeMetadata(channel string) { |
| 615 | c.mutex.RLock() |
| 616 | defer c.mutex.RUnlock() |
| 617 | |
| 618 | ms, err := c.retrieveChaincodesMetadataSetWhileLocked(channel) |
| 619 | if err != nil { |
| 620 | logger.Warningf("no metadata found on channel '%s', err %s", channel, err) |
| 621 | return |
| 622 | } |
| 623 | |
| 624 | c.MetadataHandler.InitializeMetadata(channel, ms) |
| 625 | } |
| 626 | |
| 627 | func (c *Cache) retrieveChaincodesMetadataSetWhileLocked(channelID string) (chaincode.MetadataSet, error) { |
| 628 | channelChaincodes, ok := c.definedChaincodes[channelID] |
no test coverage detected