fix: error
All checks were successful
Go Bump / bump (push) Successful in 46s
Go Test / test (push) Successful in 1m1s
Deploy / deploy (push) Successful in 2m8s

This commit is contained in:
xuu 2023-10-01 16:56:28 -06:00
parent 4784c1c380
commit a5780449fc
2 changed files with 7 additions and 7 deletions

View File

@ -10,12 +10,12 @@
owner: root
group: root
- name: Copy build to remote
ansible.builtin.copy:
src: ev.service
dest: /etc/systemd/system/ev.service
owner: root
group: root
# - name: Copy build to remote
# ansible.builtin.copy:
# src: ev.service
# dest: /etc/systemd/system/ev.service
# owner: root
# group: root
- name: Restart service
systemd:

View File

@ -304,7 +304,7 @@ func (s *service) getResults(w http.ResponseWriter, r *http.Request) {
sort.Sort(sort.Reverse(requests))
args := requestArgs(r)
args.Requests = requests[:maxResults]
args.Requests = requests[:min(maxResults, len(requests))]
s.state.Use(ctx, func(ctx context.Context, state *state) error {
args.CountPeers = len(state.peers)