diff options
author | Kegsay <kegan@matrix.org> | 2020-07-15 12:02:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 12:02:34 +0100 |
commit | 9dd2ed7f6513e8fa677dee8d7dafa33f9c7afdfc (patch) | |
tree | 5c09582128d156aa2b6629cdaae626b44357b48d /keyserver/inthttp | |
parent | b4c07995d68dbeffa2161920cb4cd61ea2be8389 (diff) |
Implement key uploads (#1202)
* Add storage layer for postgres/sqlite
* Return OTK counts when inserting new keys
* Hook up the key DB and make a test pass
* Convert postgres queries to be sqlite queries
* Blacklist test due to requiring rejected events
* Unbreak tests
* Update blacklist
Diffstat (limited to 'keyserver/inthttp')
-rw-r--r-- | keyserver/inthttp/client.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyserver/inthttp/client.go b/keyserver/inthttp/client.go index f2d00c70..4c0f1e53 100644 --- a/keyserver/inthttp/client.go +++ b/keyserver/inthttp/client.go @@ -63,7 +63,7 @@ func (h *httpKeyInternalAPI) PerformClaimKeys( err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, request, response) if err != nil { response.Error = &api.KeyError{ - Error: err.Error(), + Err: err.Error(), } } } @@ -80,7 +80,7 @@ func (h *httpKeyInternalAPI) PerformUploadKeys( err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, request, response) if err != nil { response.Error = &api.KeyError{ - Error: err.Error(), + Err: err.Error(), } } } @@ -97,7 +97,7 @@ func (h *httpKeyInternalAPI) QueryKeys( err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, request, response) if err != nil { response.Error = &api.KeyError{ - Error: err.Error(), + Err: err.Error(), } } } |