aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cache/identity_excerpt.go12
-rw-r--r--cache/repo_cache.go4
2 files changed, 9 insertions, 7 deletions
diff --git a/cache/identity_excerpt.go b/cache/identity_excerpt.go
index 7bc660b6..0539a76b 100644
--- a/cache/identity_excerpt.go
+++ b/cache/identity_excerpt.go
@@ -12,15 +12,17 @@ import (
type IdentityExcerpt struct {
Id string
- Name string
- Login string
+ Name string
+ Login string
+ ImmutableMetadata map[string]string
}
func NewIdentityExcerpt(i *identity.Identity) *IdentityExcerpt {
return &IdentityExcerpt{
- Id: i.Id(),
- Name: i.Name(),
- Login: i.Login(),
+ Id: i.Id(),
+ Name: i.Name(),
+ Login: i.Login(),
+ ImmutableMetadata: i.ImmutableMetadata(),
}
}
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index e87119fe..78633a69 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -735,8 +735,8 @@ func (c *RepoCache) ResolveIdentityImmutableMetadata(key string, value string) (
// preallocate but empty
matching := make([]string, 0, 5)
- for id, i := range c.identities {
- if i.ImmutableMetadata()[key] == value {
+ for id, i := range c.identitiesExcerpts {
+ if i.ImmutableMetadata[key] == value {
matching = append(matching, id)
}
}