mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
database/sql.Rows.Next() makes sure to call Close only after exhausting result rows which would NOT happen when returning early from a bad Scan. Close being idempotent makes it a great candidate to get always deferred regardless of what happens later on the result set. This change also makes sure call Err() after exhausting Next() and propagate non-nil results from it as the documentation advises. Closes #764 Signed-off-by: Kiril Vladimiroff <kiril@vladimiroff.org> |
||
|---|---|---|
| .. | ||
| consumers | ||
| directory | ||
| routing | ||
| storage | ||
| types | ||
| publicroomsapi.go | ||
| README.md | ||
Public rooms API
This server is responsible for serving requests hitting /publicRooms and /directory/list/room/{roomID} as per:
https://matrix.org/docs/spec/client_server/r0.2.0.html#listing-rooms