Skip to content

Commit 62f2b39

Browse files
committed
flake
1 parent fa799a6 commit 62f2b39

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

coderd/database/pubsub/pubsub.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ func (p *PGPubsub) Collect(metrics chan<- prometheus.Metric) {
609609
}
610610

611611
// New creates a new Pubsub implementation using a PostgreSQL connection.
612-
func New(startCtx context.Context, logger slog.Logger, database *sql.DB, connectURL string) (*PGPubsub, error) {
613-
p := newWithoutListener(logger, database)
612+
func New(startCtx context.Context, logger slog.Logger, db *sql.DB, connectURL string) (*PGPubsub, error) {
613+
p := newWithoutListener(logger, db)
614614
if err := p.startListener(startCtx, connectURL); err != nil {
615615
return nil, err
616616
}
@@ -620,11 +620,11 @@ func New(startCtx context.Context, logger slog.Logger, database *sql.DB, connect
620620
}
621621

622622
// newWithoutListener creates a new PGPubsub without creating the pqListener.
623-
func newWithoutListener(logger slog.Logger, database *sql.DB) *PGPubsub {
623+
func newWithoutListener(logger slog.Logger, db *sql.DB) *PGPubsub {
624624
return &PGPubsub{
625625
logger: logger,
626626
listenDone: make(chan struct{}),
627-
db: database,
627+
db: db,
628628
queues: make(map[string]map[uuid.UUID]*msgQueue),
629629
latencyMeasurer: NewLatencyMeasurer(logger.Named("latency-measurer")),
630630

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
name = "coder-${osArch}";
118118
# Updated with ./scripts/update-flake.sh`.
119119
# This should be updated whenever go.mod changes!
120-
vendorHash = "sha256-AZ0qzh7H+UwnZNyg2iaNMSUWlGgomI/mo70T+FdF7ws=";
120+
vendorHash = "sha256-AWWSj+tNYEzvf4lTgdUJMi2bY6rXxZHGh50P4WY2BUo=";
121121
proxyVendor = true;
122122
src = ./.;
123123
nativeBuildInputs = with pkgs; [ getopt openssl zstd ];

0 commit comments

Comments
 (0)