mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Fix lint errors
This commit is contained in:
parent
706e5abbc9
commit
77f912721a
2 changed files with 6 additions and 61 deletions
|
@ -36,11 +36,11 @@ func (f *FederationInternalAPI) QueryEventAuthFromFederation(
|
|||
}
|
||||
|
||||
tryHost := func(serverName gomatrixserverlib.ServerName) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
reqctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
defer cancel()
|
||||
ires, err := f.doRequest(serverName, func() (interface{}, error) {
|
||||
return f.federation.GetEventAuth(
|
||||
ctx,
|
||||
reqctx,
|
||||
serverName,
|
||||
request.RoomID,
|
||||
request.EventID,
|
||||
|
@ -76,11 +76,11 @@ func (f *FederationInternalAPI) QueryStateIDsFromFederation(
|
|||
}
|
||||
|
||||
tryHost := func(serverName gomatrixserverlib.ServerName) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
reqctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
defer cancel()
|
||||
ires, err := f.doRequest(serverName, func() (interface{}, error) {
|
||||
return f.federation.LookupStateIDs(
|
||||
ctx,
|
||||
reqctx,
|
||||
serverName,
|
||||
request.RoomID,
|
||||
request.EventID,
|
||||
|
@ -117,11 +117,11 @@ func (f *FederationInternalAPI) QueryStateFromFederation(
|
|||
}
|
||||
|
||||
tryHost := func(serverName gomatrixserverlib.ServerName) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
reqctx, cancel := context.WithTimeout(ctx, time.Second*30)
|
||||
defer cancel()
|
||||
ires, err := f.doRequest(serverName, func() (interface{}, error) {
|
||||
return f.federation.LookupState(
|
||||
ctx,
|
||||
reqctx,
|
||||
serverName,
|
||||
request.RoomID,
|
||||
request.EventID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue