mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Break some over-long lines.
This commit is contained in:
parent
29eeb5e301
commit
fe6a551f06
@ -226,7 +226,10 @@ func (ldbs *LevelDBSession) CommitTransaction() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ldbs *LevelDBSession) AllKeys(hash []byte, done chan struct{}) (keys chan []byte, n int, err error) {
|
func (ldbs *LevelDBSession) AllKeys(
|
||||||
|
hash []byte,
|
||||||
|
done chan struct{}) (keys chan []byte, n int, err error) {
|
||||||
|
|
||||||
ldbs.backend.mutex.RLock()
|
ldbs.backend.mutex.RLock()
|
||||||
|
|
||||||
ro := leveldb.NewReadOptions()
|
ro := leveldb.NewReadOptions()
|
||||||
|
@ -277,7 +277,9 @@ func (ss *SqliteSession) CommitTransaction() error {
|
|||||||
return tx.Commit()
|
return tx.Commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ss *SqliteSession) AllKeys(hash []byte, done chan struct{}) (keys chan []byte, n int, err error) {
|
func (ss *SqliteSession) AllKeys(
|
||||||
|
hash []byte,
|
||||||
|
done chan struct{}) (keys chan []byte, n int, err error) {
|
||||||
globalLock.RLock()
|
globalLock.RLock()
|
||||||
|
|
||||||
countStmt := ss.txStmt(ss.backend.countStmt)
|
countStmt := ss.txStmt(ss.backend.countStmt)
|
||||||
@ -324,7 +326,9 @@ func (ss *SqliteSession) AllKeys(hash []byte, done chan struct{}) (keys chan []b
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ss *SqliteSession) SpatialQuery(hash, first, second []byte, done chan struct{}) (chan Block, error) {
|
func (ss *SqliteSession) SpatialQuery(
|
||||||
|
hash, first, second []byte,
|
||||||
|
done chan struct{}) (chan Block, error) {
|
||||||
|
|
||||||
if ss.backend.interleaved {
|
if ss.backend.interleaved {
|
||||||
return ss.interleavedSpatialQuery(first, second, done)
|
return ss.interleavedSpatialQuery(first, second, done)
|
||||||
@ -333,7 +337,9 @@ func (ss *SqliteSession) SpatialQuery(hash, first, second []byte, done chan stru
|
|||||||
return ss.plainSpatialQuery(first, second, done)
|
return ss.plainSpatialQuery(first, second, done)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ss *SqliteSession) interleavedSpatialQuery(first, second []byte, done chan struct{}) (blocks chan Block, err error) {
|
func (ss *SqliteSession) interleavedSpatialQuery(
|
||||||
|
first, second []byte,
|
||||||
|
done chan struct{}) (blocks chan Block, err error) {
|
||||||
var (
|
var (
|
||||||
firstKey int64
|
firstKey int64
|
||||||
secondKey int64
|
secondKey int64
|
||||||
@ -409,7 +415,9 @@ func (ss *SqliteSession) interleavedSpatialQuery(first, second []byte, done chan
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struct{}) (blocks chan Block, err error) {
|
func (ss *SqliteSession) plainSpatialQuery(
|
||||||
|
first, second []byte,
|
||||||
|
done chan struct{}) (blocks chan Block, err error) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
firstKey int64
|
firstKey int64
|
||||||
|
Loading…
Reference in New Issue
Block a user