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
|
# Build
|
||||||
FROM golang:1.15 as go_build
|
FROM golang:1.13 as go_build
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
|
|
||||||
COPY main.go .
|
COPY main.go .
|
||||||
|
10
main.go
10
main.go
@ -28,7 +28,6 @@ type FeedArchiverArgs struct {
|
|||||||
DbPassword string
|
DbPassword string
|
||||||
DbDatabase string
|
DbDatabase string
|
||||||
RedisAddr string
|
RedisAddr string
|
||||||
RedisPassword string
|
|
||||||
Pattern string
|
Pattern string
|
||||||
Threads int
|
Threads int
|
||||||
}
|
}
|
||||||
@ -75,13 +74,6 @@ func main() {
|
|||||||
Value: "localhost:6379",
|
Value: "localhost:6379",
|
||||||
EnvVars: []string{"FA_REDIS_ADDR"},
|
EnvVars: []string{"FA_REDIS_ADDR"},
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
|
||||||
Name: "redis-password",
|
|
||||||
Usage: "Redis password",
|
|
||||||
Destination: &args.RedisPassword,
|
|
||||||
Value: "",
|
|
||||||
EnvVars: []string{"FA_REDIS_PASSWORD"},
|
|
||||||
},
|
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "pattern",
|
Name: "pattern",
|
||||||
Usage: "redis arc pattern",
|
Usage: "redis arc pattern",
|
||||||
@ -121,7 +113,7 @@ func main() {
|
|||||||
|
|
||||||
rdb := redis.NewClient(&redis.Options{
|
rdb := redis.NewClient(&redis.Options{
|
||||||
Addr: args.RedisAddr,
|
Addr: args.RedisAddr,
|
||||||
Password: args.RedisPassword,
|
Password: "",
|
||||||
DB: 0,
|
DB: 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user