Update KeyDB for new KeyFetcher API

we now need to implement FetcherName.
This commit is contained in:
Richard van der Hoff 2017-11-22 23:20:44 +00:00
parent b1835e9e27
commit 46e3dc9cad

View file

@ -44,6 +44,11 @@ func NewDatabase(dataSourceName string) (*Database, error) {
return d, nil
}
// FetcherName implements KeyFetcher
func (d Database) FetcherName() string {
return "KeyDatabase"
}
// FetchKeys implements gomatrixserverlib.KeyDatabase
func (d *Database) FetchKeys(
ctx context.Context,