From a2a573456b58d5e59543a612598020b647ce3d7c Mon Sep 17 00:00:00 2001 From: Simon Esposito Date: Mon, 10 Aug 2020 19:07:14 +0100 Subject: [PATCH] Increase list friends api limit to 1000 (#449) --- server/api_friend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/api_friend.go b/server/api_friend.go index fcb5855b8..e4fa22408 100644 --- a/server/api_friend.go +++ b/server/api_friend.go @@ -50,10 +50,10 @@ func (s *ApiServer) ListFriends(ctx context.Context, in *api.ListFriendsRequest) } } - limit := 100 + limit := 1000 if in.GetLimit() != nil { - if in.GetLimit().Value < 1 || in.GetLimit().Value > 100 { - return nil, status.Error(codes.InvalidArgument, "Invalid limit - limit must be between 1 and 100.") + if in.GetLimit().Value < 1 || in.GetLimit().Value > 1000 { + return nil, status.Error(codes.InvalidArgument, "Invalid limit - limit must be between 1 and 1000.") } limit = int(in.GetLimit().Value) } -- GitLab