File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ jobs:
138
138
name : installing schema
139
139
command : ./lily migrate --latest
140
140
environment :
141
- LOTUS_DB : postgres://postgres:password@localhost:5432/postgres?sslmode=disable
141
+ LILY_DB : postgres://postgres:password@localhost:5432/postgres?sslmode=disable
142
142
- run :
143
143
command : |
144
144
make test-coverage
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ LILY_TEST_DB="postgres://username@localhost/lily_test?sslmode=disable" go test .
83
83
84
84
Use the following env vars to configure the lotus node that lily reads from, and the database that it writes to:
85
85
86
- - ` LOTUS_PATH ` - path to the lotus data dir. _ default: ` ~/.lotus ` _
87
- - ` LOTUS_DB ` - database connection . _ default: ` postgres://postgres:password@localhost:5432/postgres?sslmode=disable ` _
86
+ - ` LILY_PATH ` - path to the lotus data dir. _ default: ` ~/.lily ` _
87
+ - ` LILY_DB ` - database connection . _ default: ` postgres://postgres:password@localhost:5432/postgres?sslmode=disable ` _
88
88
89
89
The ` walk ` and ` watch ` commands expect a list of tasks to be provided. Each task is responsible for reading a particular type of data from the chain and persisting it to the database.
90
90
The mapping between available tasks and database tables is as follows:
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Note that jobs are not persisted between restarts of the daemon. See
123
123
Name : "repo" ,
124
124
Usage : "Specify path where lily should store chain state." ,
125
125
EnvVars : []string {"LILY_REPO" },
126
- Value : "~/.lotus " ,
126
+ Value : "~/.lily " ,
127
127
Destination : & daemonFlags .repo ,
128
128
},
129
129
& cli.BoolFlag {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ var InitCmd = &cli.Command{
30
30
Name : "repo" ,
31
31
Usage : "Specify path where lily should store chain state." ,
32
32
EnvVars : []string {"LILY_REPO" },
33
- Value : "~/.lotus " ,
33
+ Value : "~/.lily " ,
34
34
Destination : & initFlags .repo ,
35
35
},
36
36
& cli.StringFlag {
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ var VisorDBFlags VisorDBOpts
36
36
var dbConnectFlags = []cli.Flag {
37
37
& cli.StringFlag {
38
38
Name : "db" ,
39
- EnvVars : []string {"LOTUS_DB " },
39
+ EnvVars : []string {"LILY_DB " },
40
40
Value : "" ,
41
41
Usage : "A connection string for the TimescaleDB database, for example postgres://postgres:password@localhost:5432/postgres?sslmode=disable" ,
42
42
Destination : & VisorDBFlags .DB ,
43
43
},
44
44
& cli.IntFlag {
45
45
Name : "db-pool-size" ,
46
- EnvVars : []string {"LOTUS_DB_POOL_SIZE " },
46
+ EnvVars : []string {"LILY_DB_POOL_SIZE " },
47
47
Value : 75 ,
48
48
Destination : & VisorDBFlags .DBPoolSize ,
49
49
},
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ func SampleConf() *Conf {
81
81
cfg .Storage = StorageConf {
82
82
Postgresql : map [string ]PgStorageConf {
83
83
"Database1" : {
84
- URLEnv : "LOTUS_DB " , // LOTUS_DB is a historical accident, but we keep it as the default for compatibility
84
+ URLEnv : "LILY_DB " , // LILY_DB is a historical accident, but we keep it as the default for compatibility
85
85
URL : "postgres://postgres:password@localhost:5432/postgres" ,
86
86
PoolSize : 20 ,
87
87
ApplicationName : "visor" ,
You can’t perform that action at this time.
0 commit comments