Commit graph

518 commits

Author SHA1 Message Date
Andre Medeiros
05cb97d412 be more specific about errors 2022-06-30 12:11:07 -04:00
Andre Medeiros
ce944f92f7 lets prune accounts again 2022-06-30 09:56:38 -04:00
Andre Medeiros
ee29fccaf9 chill logging 2022-06-29 13:25:59 -04:00
Andre Medeiros
6edb220d84 update reporting rate for API calls 2022-06-28 13:13:42 -04:00
Andre Medeiros
8fc0603735 add tags to api call metrics 2022-06-28 10:55:52 -04:00
André Medeiros
d3c9e303ff Update api.go 2022-06-27 18:47:07 -04:00
Andre Medeiros
523dce6300 tweak pool 2022-06-27 10:36:01 -04:00
Andre Medeiros
ad62000372 fix authenticated client call 2022-06-25 15:52:47 -04:00
Andre Medeiros
51ba167a09 tweak scaling 2022-06-25 15:13:56 -04:00
Andre Medeiros
253fc7bbc6 fix ip allow list 2022-06-25 15:11:46 -04:00
Andre Medeiros
96131b0bcb fix ip allow list 2022-06-25 14:46:47 -04:00
Andre Medeiros
8ae426a4de do not prune accounts 2022-06-25 14:45:05 -04:00
Andre Medeiros
7234628428 add statsd to API responses 2022-06-25 14:12:56 -04:00
Andre Medeiros
f4e5d7e979 bump connections again 2022-06-25 14:04:03 -04:00
Andre Medeiros
aa92f1ec69 increase API connections 2022-06-25 14:01:03 -04:00
Andre Medeiros
6b7abe4eb0 fix nil pointer dereferrence on notification errors 2022-06-13 16:01:36 -04:00
Andre Medeiros
fb01cf91bc stop notifying old server 2022-06-04 10:58:53 -04:00
Andre Medeiros
221de1d2b6 back to no singleton mode, now that we're stable 2022-06-04 10:29:33 -04:00
Andre Medeiros
d243cebab6 better iteration 2022-06-04 10:24:22 -04:00
Andre Medeiros
084407a5f2 calculate batch size properly 2022-06-04 10:23:45 -04:00
Andre Medeiros
b23a158471 parallelize scheduler better 2022-06-04 10:21:29 -04:00
Andre Medeiros
b29f120eea always show media for subreddit requests 2022-05-30 14:22:21 -04:00
Andre Medeiros
6ece4c784a no singleton 2022-05-27 16:12:50 -04:00
Andre Medeiros
0938400dd7 Revert "try enqueue accounts in a loop instead"
This reverts commit 9b5829f549.
2022-05-27 15:02:57 -04:00
Andre Medeiros
01ad9f3d1e Revert "another experiment for scheduling"
This reverts commit c8dd76e1ab.
2022-05-27 15:02:47 -04:00
Andre Medeiros
f7516a06b3 Revert "Mark account as seen"
This reverts commit ac72c979a6.
2022-05-27 15:02:39 -04:00
Andre Medeiros
ac72c979a6 Mark account as seen 2022-05-27 14:58:41 -04:00
Andre Medeiros
c8dd76e1ab another experiment for scheduling 2022-05-27 14:55:59 -04:00
Andre Medeiros
9b5829f549 try enqueue accounts in a loop instead 2022-05-27 14:47:59 -04:00
Andre Medeiros
fb3f2d1433 more scheduler tweaks 2022-05-27 14:40:40 -04:00
Andre Medeiros
356402d631 Revert "tweak scheduler"
This reverts commit 38fef3c852.
2022-05-27 14:39:12 -04:00
Andre Medeiros
38fef3c852 tweak scheduler 2022-05-27 14:33:46 -04:00
Andre Medeiros
eb853710c4 Add profiling to scheduler 2022-05-27 13:27:28 -04:00
Andre Medeiros
dc9f42de8b be less noisy again 2022-05-27 09:51:59 -04:00
Andre Medeiros
80438dc1e2 fix median calculation by forcing a limit 2022-05-27 09:37:25 -04:00
Andre Medeiros
f0353399e8 Revert "Don't log post titles anymore"
This reverts commit e9a2f5b745.
2022-05-27 09:22:04 -04:00
Andre Medeiros
2111cb4be6 Revert "Make median score log debug level"
This reverts commit c3f7982882.
2022-05-27 09:21:56 -04:00
Andre Medeiros
c3f7982882 Make median score log debug level 2022-05-26 18:58:53 -04:00
Andre Medeiros
e9a2f5b745 Don't log post titles anymore 2022-05-26 18:58:12 -04:00
Andre Medeiros
d8bd6dfb37 show all to avoid hidden posts 2022-05-26 18:56:53 -04:00
Andre Medeiros
be343deab8 try logging posts differently 2022-05-26 18:44:07 -04:00
Andre Medeiros
e7faf73834 sort scores 2022-05-26 18:17:49 -04:00
dependabot[bot]
72450d54d7 Bump github.com/jackc/pgconn from 1.12.0 to 1.12.1
Bumps [github.com/jackc/pgconn](https://github.com/jackc/pgconn) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/jackc/pgconn/releases)
- [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgconn/compare/v1.12.0...v1.12.1)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgconn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 21:54:29 +00:00
André Medeiros
8dc4ac350e omg fix watchers and subreddit things (#79)
* omg fix watchers and subreddit things

* don't send thumbnails for posts that are over 18
2022-05-26 17:54:02 -04:00
dependabot[bot]
7e9cf6e78a Bump go.uber.org/zap from 1.13.0 to 1.21.0 (#77)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.13.0 to 1.21.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.13.0...v1.21.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-26 17:53:28 -04:00
Andre Medeiros
7da47176a2 Revert "token refresh mechanism"
This reverts commit df96aaa768.
2022-05-25 20:17:03 -04:00
Andre Medeiros
df96aaa768 token refresh mechanism 2022-05-25 20:12:54 -04:00
Andre Medeiros
47a0aa47dd add logging for things 2022-05-25 19:55:51 -04:00
Andre Medeiros
5ede5d6987 more breahing room with tokens 2022-05-25 19:49:14 -04:00
Andre Medeiros
4f34e3927b add a bit of breathing room for token refresh 2022-05-25 19:44:29 -04:00