8 Commits

Author SHA1 Message Date
xuu bb7f6b3878 chore: add keyoxide 2023-10-04 15:07:41 -06:00
xuu 41476d04a2 fix: null pointer when unable to startu peerfinder
Go Bump / bump (push) Successful in 30s
Go Test / test (push) Successful in 43s
Deploy / deploy (push) Successful in 1m25s
2023-10-02 11:26:14 -06:00
xuu a5780449fc fix: error
Go Bump / bump (push) Successful in 46s
Go Test / test (push) Successful in 1m1s
Deploy / deploy (push) Successful in 2m8s
2023-10-01 17:18:28 -06:00
xuu 4784c1c380 fix: error
Go Bump / bump (push) Successful in 34s
Go Test / test (push) Successful in 46s
Deploy / deploy (push) Successful in 1m44s
2023-10-01 17:06:24 -06:00
xuu 6bb1d524b9 fix: error
Go Bump / bump (push) Successful in 43s
Go Test / test (push) Successful in 56s
2023-10-01 16:56:28 -06:00
xuu bcadac0f07 build: fix deploy
Go Bump / bump (push) Successful in 31s
Go Test / test (push) Successful in 48s
2023-09-30 21:02:59 -06:00
xuu 1a2087f2ee build: fix deploy
Go Bump / bump (push) Failing after 31s
Go Test / test (push) Successful in 48s
2023-09-30 21:02:21 -06:00
xuu f2069de1ec build: fix deploy
Go Bump / bump (push) Failing after 37s
Go Test / test (push) Successful in 49s
2023-09-30 21:01:23 -06:00
12 changed files with 17 additions and 20 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ After=syslog.target network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/local/bin/ev ExecStart=/usr/local/bin/ev
User=www-data
Restart=always Restart=always
RestartSec=30 RestartSec=30
+6 -6
View File
@@ -10,12 +10,12 @@
owner: root owner: root
group: root group: root
- name: Copy build to remote # - name: Copy build to remote
ansible.builtin.copy: # ansible.builtin.copy:
src: ev.service # src: ev.service
dest: /etc/systemd/system/ev.service # dest: /etc/systemd/system/ev.service
owner: root # owner: root
group: root # group: root
- name: Restart service - name: Restart service
systemd: systemd:
+1 -2
View File
@@ -20,7 +20,6 @@ jobs:
- run: go install github.com/psanetra/git-semver/cli@master - run: go install github.com/psanetra/git-semver/cli@master
- run: git tag v$(cli next --stable=false) - run: git tag v$(cli next --stable=false) && git push --tags || echo no change
- run: git push --tags
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
+2 -4
View File
@@ -1,12 +1,10 @@
name: Deploy name: Deploy
on: on:
# push: push:
# branches: [ "main" ] branches: [ "main" ]
release: release:
types: [ published ] types: [ published ]
create:
types: [ tag ]
jobs: jobs:
deploy: deploy:
+1
View File
@@ -1 +1,2 @@
tools tools
tmp
+1 -1
View File
@@ -304,7 +304,7 @@ func (s *service) getResults(w http.ResponseWriter, r *http.Request) {
sort.Sort(sort.Reverse(requests)) sort.Sort(sort.Reverse(requests))
args := requestArgs(r) 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 { s.state.Use(ctx, func(ctx context.Context, state *state) error {
args.CountPeers = len(state.peers) args.CountPeers = len(state.peers)
+5 -5
View File
@@ -91,17 +91,17 @@ func (s *service) Run(ctx context.Context) (err error) {
subRes, e := s.es.EventStream().Subscribe(ctx, queueResults, 0) subRes, e := s.es.EventStream().Subscribe(ctx, queueResults, 0)
errs = multierr.Append(errs, e) errs = multierr.Append(errs, e)
if errs != nil {
return errs
}
defer func() { defer func() {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel() defer cancel()
err = multierr.Combine(subReq.Close(ctx), subRes.Close(ctx), err) err = multierr.Combine(err, subReq.Close(ctx), subRes.Close(ctx))
}() }()
if errs != nil {
return errs
}
for { for {
var events event.Events var events event.Events
select { select {
View File
-1
View File
@@ -1 +0,0 @@
exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1exit status 1
BIN
View File
Binary file not shown.