Commit graph

14 commits

Author SHA1 Message Date
kayos@tcp.direct
e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
- Avoid referencing conditions we know are false/true

 - Avoid using name of imported package as variable

 - Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement

 - When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
  *** This item is the most important ***

 - Standard gofmt package sorting + linting; This includes fixing comment starts for go doc

 - Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)

 - Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
0xdcarns
a36a20fa4c messed with sizing 2022-05-10 09:26:54 -04:00
0xdcarns
55dd7c18f7 added address struct 2022-04-27 15:51:29 -04:00
0xdcarns
8496a834c3 initial list remake 2022-04-27 15:40:48 -04:00
Matthew R. Kasun
7152f6ccd4 remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
Matthew R. Kasun
886ec31553 remove grpc 2022-04-21 15:04:44 -04:00
0xdcarns
a477eaa767 added local node ID's to list command 2022-03-22 15:33:38 -04:00
0xdcarns
4cd75f2985 initial commit 2022-03-22 15:13:48 -04:00
Matthew R. Kasun
11b1098390 replace ncutil.Log/PrintLog with logger.Log 2022-03-21 11:27:25 -04:00
Chay Choong
2a9b422495
fix: endpoint typo 2022-02-10 17:54:03 +08:00
0xdcarns
d18b6d5ee2 refactored all grpc to be uniform 2022-01-17 14:21:40 -05:00
Adrien Raffin-Caboisse
bfd0c00ef2
fix(netclient): rework the returned errors on list command 2021-10-15 15:52:29 +02:00
Adrien Raffin-Caboisse
2c0a470390
feat(netclient): Add network filter to list command 2021-10-15 15:51:53 +02:00
Adrien Raffin-Caboisse
51a09167fc feat(netclient): add listing of nodes with hostnames 2021-10-15 15:02:32 +02:00