move comment down
@@ -571,10 +571,11 @@ func (s *Store) Query(qr *QueryRequest) ([]*sql.Rows, error) {
return nil, ErrNotLeader
}
- // Read straight from database.
if qr.Lvl == None && qr.Freshness > 0 && time.Since(s.raft.LastContact()) > qr.Freshness {
return nil, ErrStaleRead
}
+
+ // Read straight from database.
return s.db.Query(qr.Queries, qr.Tx, qr.Timings)
}
