Skip to content

Commit bdf0827

Browse files
authored
Merge pull request #100 from fly-apps/pointer_diff
The diff can be pgtype::NULL out of pg evidently
2 parents 9dcff36 + 15d039f commit bdf0827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/flypg/admin/admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func ResolveRole(ctx context.Context, pg *pgx.Conn) (string, error) {
255255

256256
type ReplicationStat struct {
257257
Name string
258-
Diff int
258+
Diff *int
259259
}
260260

261261
func ResolveReplicationLag(ctx context.Context, pg *pgx.Conn) ([]*ReplicationStat, error) {

0 commit comments

Comments
 (0)