1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00
Commit graph

81 commits

Author SHA1 Message Date
2382f72e5a Merge branch '32-request-for-more-startup-flags' 2024-02-18 20:03:54 +01:00
432dfab410 cmd/thalos/server.go: only fetch chain info from api once (or zero for code paths that does not need it). 2024-02-18 18:39:55 +01:00
368d3f36bf cmd/thalos/server.go: remove debug call to Println() 2024-02-18 18:10:46 +01:00
fb3b35cbe9 cmd/thalos/server.go: in stateLoader(): set "cli" as source if start block is set via cli flag. 2024-02-18 18:09:57 +01:00
146ea99298 cmd/thalos/server.go: in GetConfig() should override "no-state-cache" flag if "start-block" flag is set. 2024-02-18 18:04:04 +01:00
7f1f186aa0 nternal/config/cli.go: move overrideCliFlags() to cmd/thalos/server.go as its pretty specific code. 2024-02-18 18:00:26 +01:00
53baae8a7f internal/config/cli.go: move flags that are not bound to config to cmd/thalos/main.go 2024-02-18 17:40:04 +01:00
beb5b6cf04 cmd/thalos/main.go: move cli flags to internal/config/cli.go as it is easier to write tests if we can get a hold of the flags. 2024-02-18 14:36:27 +01:00
cb207b2f33 cmd/thalos/main.go: Add start-block and end-block flags. 2024-02-18 11:39:32 +01:00
cad74a4d84 cmd/thalos/server.go: use the new config.Builder 2024-02-18 11:39:32 +01:00
85da219349 Merge branch 'refactor' 2024-02-17 17:32:19 +01:00
59480533d3 refactor cli to use cobra. 2024-02-17 14:34:27 +01:00
b853bc026e cmd/thalos/server.go: remove global variables. 2024-02-14 21:03:37 +01:00
7108299550 cmd/thalos/main.go: minor cleanup in VersionPrinter 2024-02-14 13:01:34 +01:00
9974bfe3fd rename app folder to internal. 2024-02-14 13:00:33 +01:00
afb90af1db cmd/thalos/server.go: in run() set running flag to false before calling shClient.Shutdown() so readerLoop() exists correctly. 2024-02-13 23:14:47 +01:00
775760ec32 cmd/thalos/server.go: get rid of exit channel. its sufficient to just use running flag. 2024-02-13 23:13:51 +01:00
457e0e4eeb cmd/thalos/server.go: define and use ReadConfig() that utilizes Config.ReadFile and Config.ReadCliFlags() methods 2024-02-12 15:14:21 +01:00
a36c3f7853 cmd/thalos/server.go: wrap errors returned to main (to give more context) 2024-02-12 14:55:02 +01:00
e5e15a7645 app/config/config.go: rework api. 2024-02-11 14:29:01 +01:00
655dd730d7 switch github.com/pborman/getopt to github.com/urfave/cli for handling cli flags 2024-02-10 18:52:50 +01:00
729860cf76 cmd/tools/validate.go: log errors from client. 2024-02-07 17:32:03 +01:00
133af980a3 api/client.go: Rework to use a channel instead of callback. 2024-02-04 22:49:49 +01:00
cb14978118 cmd/tools/mock_publisher.go: add log message before starting. 2024-02-02 16:52:50 +01:00
e93cc1d139 tools: rename redis prefix flag to just prefix. 2024-02-02 16:52:31 +01:00
1f3e4a0fd9 cmd/tools/redis-acl.go: Make timestamp used as the random seed have nanoseconds precision. 2024-01-15 22:30:43 +01:00
ebeef44c31 cmd/tools/redis-acl.go: should not call rand.Seed(), instead create a new rand.Rand object. 2024-01-15 22:29:27 +01:00
578f9e83d7 cmd/tools/mock_publisher.go: fix correct imports. 2023-12-17 19:37:08 +01:00
41ab39d4a3 cmd/thalos/main.go: pass context to cache. 2023-12-17 17:58:42 +01:00
22e98f1c37 Merge branch 'cache'
# Conflicts:
#	app/abi/manager.go
#	app/ship_processor.go
#	cmd/thalos/main.go
2023-12-06 15:38:34 +01:00
7b1b500b22 cmd/thalos/main.go: have running variable be set to true on initialization.
No point setting it in readerLoop() as its only used to exit the application, as soon as its set to false. the application should exit as soon as possible.
2023-12-06 15:30:09 +01:00
24bf44a175 move writer interface and redis publish from api module as these are for the server side. 2023-11-25 15:14:21 +01:00
7ee70c00d7 cmd/thalos/main.go: fix help text for version flag. 2023-11-04 13:34:00 +01:00
1daf38bd3d cmd/thalos/main.go: adding "-n" flag to force current block from config/api. 2023-11-04 13:32:32 +01:00
fa48a79610 cmd/thalos/main.go: adding stateLoader and stateSaver functions for passing to processor. 2023-11-04 13:27:44 +01:00
2acae14ff8 cmd/thalos/main.go: use new cache struct and abi manager. 2023-11-01 21:30:42 +01:00
809f42f5af Adding cmd/tools/mock_publisher.go 2023-10-22 20:32:25 +02:00
b364ce56d8 cmd/thalos/main.go: Add "level" cli flag to make it possible for user to specify log level. 2023-08-30 16:06:57 +02:00
16ab7d1fcf cmd/thalos/main.go: Fix some log lines to use structured logging. 2023-08-30 15:52:57 +02:00
0f5c94f8de Adding cmd/tools/redis-acl.go 2023-08-23 11:23:58 +02:00
1ba1422c6f cmd/tools/bench.go: Support Redis username and password flags. 2023-08-22 16:24:43 +02:00
9f61bbd316 cmd/tools/flags.go: adding Redis User and Password flags. 2023-08-22 16:24:09 +02:00
6c61382f4c cmd/thalos/main.go: in readerLoop() make sure we set shClient.StartBlock to processor's current block when (re)connecting. 2023-08-21 14:12:07 +02:00
e1dc5f85a0 cmd/thalos/main.go: Make telegram notifications optional 2023-07-18 10:21:14 +02:00
129272d32e cmd/thalos/main.go: pass chain id instead of prefix as id to AbiManager 2023-07-13 07:09:09 +02:00
500cddc082 app/config/config.go: Adding User field to RedisConfig 2023-07-13 06:57:41 +02:00
8ab7d852a7 cmd/tools/validate.go: Fix usage string. 2023-06-28 15:54:52 +02:00
e3f46d4a84 cmd/tools/flags.go: move common flags into it's own file. 2023-06-28 15:25:29 +02:00
c7246ead03 cmd/tools: change from github.com/spf13/cobra to github.com/urfave/cli/v2 as cli library. 2023-06-28 15:24:06 +02:00
fb54dd9960 cmd/thalos/main.go: exit the program correctly if we get shipclient.ErrEndBlockReached 2023-06-26 16:24:00 +02:00