diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go b/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go index b96cb78bf..2b162a81f 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go @@ -10,7 +10,7 @@ import ( // A Database is used to store room events and stream offsets. type Database struct { statements statements - db *sql.DB + db *sql.DB } // Open a postgres database. diff --git a/src/github.com/matrix-org/dendrite/roomserver/types/types.go b/src/github.com/matrix-org/dendrite/roomserver/types/types.go index 6ab4092a8..3c6dd5bb3 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/types/types.go +++ b/src/github.com/matrix-org/dendrite/roomserver/types/types.go @@ -8,17 +8,3 @@ type PartitionOffset struct { // The offset into the partition. Offset int64 } - -// An InvalidInput is a problem that was encountered when processing input. -type InvalidInput struct { - // The topic the input was read from. - Topic string - // The partition the input was read from. - Partition int32 - // The offset in the partition the input was read from. - Offset int64 - // The value that errored. - Value []byte - // The error itself - Error string -}