fix: resolve lll lint issues
This commit is contained in:
@@ -199,7 +199,9 @@ func (s *Database) PollMessages(ctx context.Context, userID string, afterTS stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetMessagesBefore returns channel messages before a given timestamp (for history scrollback).
|
// GetMessagesBefore returns channel messages before a given timestamp (for history scrollback).
|
||||||
func (s *Database) GetMessagesBefore(ctx context.Context, target string, beforeTS string, limit int) ([]MessageInfo, error) {
|
func (s *Database) GetMessagesBefore(
|
||||||
|
ctx context.Context, target string, beforeTS string, limit int,
|
||||||
|
) ([]MessageInfo, error) {
|
||||||
if limit <= 0 {
|
if limit <= 0 {
|
||||||
limit = 50
|
limit = 50
|
||||||
}
|
}
|
||||||
@@ -257,7 +259,9 @@ func (s *Database) GetMessagesBefore(ctx context.Context, target string, beforeT
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetDMsBefore returns DMs between two users before a given timestamp.
|
// GetDMsBefore returns DMs between two users before a given timestamp.
|
||||||
func (s *Database) GetDMsBefore(ctx context.Context, userA, userB string, beforeTS string, limit int) ([]MessageInfo, error) {
|
func (s *Database) GetDMsBefore(
|
||||||
|
ctx context.Context, userA, userB string, beforeTS string, limit int,
|
||||||
|
) ([]MessageInfo, error) {
|
||||||
if limit <= 0 {
|
if limit <= 0 {
|
||||||
limit = 50
|
limit = 50
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user