Restructure *Rows.Values() to use Get()
This commit is contained in:
+1
-5
@@ -246,11 +246,7 @@ func getCurrentTimeline(t *testing.T, rc *pgx.ReplicationConn) int {
|
||||
if e != nil {
|
||||
t.Error(e)
|
||||
}
|
||||
timeline, e := strconv.Atoi(values[1].(string))
|
||||
if e != nil {
|
||||
t.Error(e)
|
||||
}
|
||||
return timeline
|
||||
return int(values[1].(int32))
|
||||
}
|
||||
t.Fatal("Failed to read timeline")
|
||||
return -1
|
||||
|
||||
Reference in New Issue
Block a user