mirror of
https://github.com/simon987/feed_archiver.git
synced 2025-04-21 11:16:45 +00:00
Compare commits
No commits in common. "e8ea4ff1ddbe7170826ad54eef2425ad82a8b662" and "a09e87668e45059360ccb68a8071a24e69ba6718" have entirely different histories.
e8ea4ff1dd
...
a09e87668e
@ -1,5 +1,5 @@
|
||||
# Build
|
||||
FROM golang:1.15 as go_build
|
||||
FROM golang:1.13 as go_build
|
||||
WORKDIR /build/
|
||||
|
||||
COPY main.go .
|
||||
|
24
main.go
24
main.go
@ -23,14 +23,13 @@ var pool *pgx.ConnPool
|
||||
var replacer = strings.NewReplacer(".", "_")
|
||||
|
||||
type FeedArchiverArgs struct {
|
||||
DbHost string
|
||||
DbUser string
|
||||
DbPassword string
|
||||
DbDatabase string
|
||||
RedisAddr string
|
||||
RedisPassword string
|
||||
Pattern string
|
||||
Threads int
|
||||
DbHost string
|
||||
DbUser string
|
||||
DbPassword string
|
||||
DbDatabase string
|
||||
RedisAddr string
|
||||
Pattern string
|
||||
Threads int
|
||||
}
|
||||
|
||||
func main() {
|
||||
@ -75,13 +74,6 @@ func main() {
|
||||
Value: "localhost:6379",
|
||||
EnvVars: []string{"FA_REDIS_ADDR"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "redis-password",
|
||||
Usage: "Redis password",
|
||||
Destination: &args.RedisPassword,
|
||||
Value: "",
|
||||
EnvVars: []string{"FA_REDIS_PASSWORD"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "pattern",
|
||||
Usage: "redis arc pattern",
|
||||
@ -121,7 +113,7 @@ func main() {
|
||||
|
||||
rdb := redis.NewClient(&redis.Options{
|
||||
Addr: args.RedisAddr,
|
||||
Password: args.RedisPassword,
|
||||
Password: "",
|
||||
DB: 0,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user