Commit graph

36 commits

Author SHA1 Message Date
Niko Storni
b33651ae26 save uploaded blobs and work around the blocklist issue 2021-01-05 05:09:55 +01:00
Niko Storni
c3db95a6c1 add more metrics
increase handshake timeout by 1 second
2020-10-15 02:59:12 +02:00
Alex Grintsvayg
5d8a2d697c
use labels for different error types 2020-01-02 13:12:33 -05:00
Alex Grintsvayg
50089481fb
switch to prometheus for metrics 2020-01-02 13:12:33 -05:00
Mark Beamer Jr
86a553b876
upgrade to lbry.go v2.4.0 2019-11-13 19:11:35 -05:00
Alex Grintsvayg
38401bf8d6
separate uploader into reusable component 2019-07-03 13:39:37 -04:00
Alex Grintsvayg
c649636eeb
better error when connection fails 2019-06-05 11:03:55 -04:00
Alex Grintsvayg
fa2ec38d3e
start logging received json on decode error 2019-05-01 15:39:14 -04:00
Alex Grintsvayg
a98990f573
track peer errors as well 2019-02-08 14:56:41 -05:00
Alex Grintsvayg
75ad143d84 switch to lbry.go/stream 2019-01-10 08:02:43 -05:00
Alex Grintsvayg
14d6d32a41 move dht to lbry.go repo 2019-01-09 17:52:30 -05:00
Alex Grintsvayg
11ebfb822b started work on go blob primitives. successfully matched python's blob crypto (excluding canonical JSON) 2018-10-04 15:05:19 -04:00
Alex Grintsvayg
61e83d86de actually done now 2018-09-20 11:29:35 -04:00
Alex Grintsvayg
59e92ccf88 reports stats on shutdown 2018-09-04 11:08:34 -04:00
Alex Grintsvayg
473e7e3b07 consolidate errors that happen a lot and we know about 2018-08-29 09:04:09 -04:00
Alex Grintsvayg
d7a4b34d8c unused type 2018-08-28 15:27:32 -04:00
Alex Grintsvayg
605afd1d6c add stats reporting to reflector 2018-08-28 11:18:06 -04:00
Alex Grintsvayg
fe9cf091fc send the expected response instead of the error message 2018-08-20 11:52:29 -04:00
Alex Grintsvayg
75886211b1 fix partial stream upload 2018-08-15 20:18:54 -04:00
Alex Grintsvayg
44cf4d085c dont log every blob you get 2018-08-15 15:52:41 -04:00
Alex Grintsvayg
bd8a35e366 expose reflector timeout, bump it up 2018-08-15 15:50:09 -04:00
Alex Grintsvayg
4284c3b1f9 sendblob command 2018-08-15 14:25:15 -04:00
Alex Grintsvayg
4c8eda783f bugfix 2018-08-15 11:26:36 -04:00
Alex Grintsvayg
74cb72f197 slack us the logs 2018-08-15 11:10:38 -04:00
Alex Grintsvayg
73f3aceca6 fixed a few reflector issues, added some tests 2018-08-09 15:46:40 -04:00
Alex Grintsvayg
8bb1242ed9 fixed some linting errors
found them using

```
gometalinter --skip=vendor --disable-all --enable=megacheck --enable=deadcode --enable=ineffassign --enable=interfacer --enable=errcheck ./...
```
2018-08-07 11:38:56 -04:00
Alex Grintsvayg
8f395d8743 fix reflector responding correctly when we have the full stream. fixes lbryio/reflector-cluster#60 2018-07-26 10:25:47 -04:00
Alex Grintsvayg
34cc92678b partial switch to new stopgroup. need to refactor to take advantage of child cancelation 2018-06-25 16:49:40 -04:00
Alex Grintsvayg
e480fa146f fixed a few channel lockups, fixed announced port in dht, successfully announced and served a blob 2018-06-21 11:26:48 -04:00
Alex Grintsvayg
4535122a06 starting to put together the pieces
- prism start command
- more configs for prism when assembling the pieces
- cluster notifies on membership change, determines hash range, announces hashes
2018-06-14 22:30:38 -04:00
Mark Beamer Jr
a2a0b27bc4 implemented stopper pattern
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
-Implemented stopper param for reflector server
-Aligned Cluster New to NewCluster
-Adjusted DHT to use StopAndWait
-Removed blocking waitgroup add
-Unified all components under prism.
-Moved defer done outside of functions.
-renamed NewCluster to New
-fixed travis errors.
2018-06-13 09:36:44 -04:00
Mark Beamer Jr
35f98ce162 code cleanup
-Added travis support
-updated travis to analyze code beneath the root.
-refactored upload.go to fix travis errors.
-gocyclo should ignore test files. $GOFILES needed to be adjusted.
-fix rows.Close() ignoring error. Created func to handle so defer can be used when needed also.
-fixed ignored errors.
-fixed unit test that was not passing correctly to anonymous function.
-fixed govet error for passing param inside go func.
-removed returned error, in favor of logging instead.
-added error logging for ignored error.
-fixed potential race conditions.
-removed unused append
-fixed time usage to align with go standards.
-removed unused variables
-made changes for code review.
-code comments for exported functions.
-Documented bitmap.go and insert into contact list.
-Documented dht, message, bootstrap
-Fixed comment typos
-Documented message,node, routing_table, testing in DHT package.
-Documented server, client, prism, server and shared in peer and reflector packages.
-Documented the stores in Store package.
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
2018-06-13 09:29:13 -04:00
Alex Grintsvayg
1075de77f5 started merging all components into one 2018-05-29 17:33:58 -04:00
Alex Grintsvayg
32a27c4e4d new errors.go 2018-03-01 16:28:25 -05:00
Alex Grintsvayg
7b3ac43fff accepts full streams, stores them in db 2018-02-02 16:49:20 -05:00
Alex Grintsvayg
5592f00c11 peer protocol partially done 2018-01-29 14:37:26 -05:00
Renamed from server.go (Browse further)