this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Relay:Fix flag type initial-seq-number (#1174)

Relay is not starting because initial-seq-number is always 0, resulting
from typecast from int to int64 fails. Changed flag type of
initial-seq-number fom int to Int64.

default-account-limit and new-hosts-per-day-limit had the same issue

fixes #1176

authored by

bnewbold and committed by
GitHub
78629072 aa7fd7f7

+5 -4
+5 -4
cmd/relay/main.go
··· 13 13 "syscall" 14 14 "time" 15 15 16 + _ "net/http/pprof" 17 + 16 18 _ "github.com/joho/godotenv/autoload" 17 19 _ "go.uber.org/automaxprocs" 18 - _ "net/http/pprof" 19 20 20 21 "github.com/bluesky-social/indigo/atproto/identity" 21 22 "github.com/bluesky-social/indigo/cmd/relay/relay" ··· 102 103 Sources: cli.EnvVars("RELAY_HOST_CONCURRENCY", "RELAY_CONCURRENCY_PER_PDS"), 103 104 Value: 40, 104 105 }, 105 - &cli.IntFlag{ 106 + &cli.Int64Flag{ 106 107 Name: "default-account-limit", 107 108 Value: 100, 108 109 Usage: "max number of active accounts for new upstream hosts", 109 110 Sources: cli.EnvVars("RELAY_DEFAULT_ACCOUNT_LIMIT", "RELAY_DEFAULT_REPO_LIMIT"), 110 111 }, 111 - &cli.IntFlag{ 112 + &cli.Int64Flag{ 112 113 Name: "new-hosts-per-day-limit", 113 114 Value: 50, 114 115 Usage: "max number of new upstream hosts subscribed per day via public requestCrawl", ··· 135 136 Usage: "when messages fail atproto 'Sync 1.1' validation, just log, don't drop", 136 137 Sources: cli.EnvVars("RELAY_LENIENT_SYNC_VALIDATION"), 137 138 }, 138 - &cli.IntFlag{ 139 + &cli.Int64Flag{ 139 140 Name: "initial-seq-number", 140 141 Usage: "when initializing output firehose, start with this sequence number", 141 142 Value: 1,