Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored and calmbeing committed Mar 16, 2023
1 parent 88b28d4 commit 942990c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (s *Server) serveSingleRequest(ctx context.Context, codec ServerCodec, stre
}
if batch {
if s.batchLimit > 0 && len(reqs) > s.batchLimit {
codec.writeJSON(ctx, errorMessage(fmt.Errorf("batch limit %d exceeded: %d requests given", s.batchLimit, len(reqs))))
codec.writeJSON(ctx, errorMessage(fmt.Errorf("batch limit %d exceeded (can increase by --rpc.batch.limit). Requested batch of size: %d", s.batchLimit, len(reqs))))
} else {
h.handleBatch(reqs)
}
Expand Down

0 comments on commit 942990c

Please sign in to comment.