Store fetched keys

This commit is contained in:
Neil Alexander 2020-06-04 13:58:25 +01:00
parent 5408af1baf
commit 0e1a9713f1

View file

@ -66,6 +66,9 @@ func (s *ServerKeyAPI) FetchKeys(
results[req] = res
delete(requests, req)
}
if err = s.OurKeyRing.KeyDatabase.StoreKeys(ctx, fetcherResults); err != nil {
return nil, fmt.Errorf("server key API failed to store retrieved keys: %w", err)
}
}
}
// If we failed to fetch any keys then we should report an error.