diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-04-28 17:46:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 17:46:01 +0200 |
commit | 6b47cf0f6ac9176b7e5a5bd6f357722ee0f5e384 (patch) | |
tree | 484c0133034ec1968e66d69b58c4f90486b1c5ae /roomserver/storage | |
parent | 1432743d1ad669718e8f70f4dc1f29a9762e3fc4 (diff) |
Remove `PerformError` (#3066)
This removes `PerformError`, which was needed when we still had
polylith.
This removes quite a bunch of
```go
if err != nil {
return err
}
if err := res.Error; err != nil {
return err.JSONResponse()
}
```
Hopefully can be read commit by commit. [skip ci]
Diffstat (limited to 'roomserver/storage')
-rw-r--r-- | roomserver/storage/interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index 1cf05d59..a2364e2e 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -139,7 +139,7 @@ type Database interface { // not found. // Returns an error if the retrieval went wrong. EventsFromIDs(ctx context.Context, roomInfo *types.RoomInfo, eventIDs []string) ([]types.Event, error) - // Publish or unpublish a room from the room directory. + // PerformPublish publishes or unpublishes a room from the room directory. Returns a database error, if any. PublishRoom(ctx context.Context, roomID, appserviceID, networkID string, publish bool) error // Returns a list of room IDs for rooms which are published. GetPublishedRooms(ctx context.Context, networkID string, includeAllNetworks bool) ([]string, error) |