mirror of
				https://bitbucket.org/s_l_teichmann/mtsatellite
				synced 2025-10-31 08:05:27 +01:00 
			
		
		
		
	Break some over-long lines.
This commit is contained in:
		| @@ -226,7 +226,10 @@ func (ldbs *LevelDBSession) CommitTransaction() (err error) { | ||||
| 	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() | ||||
|  | ||||
| 	ro := leveldb.NewReadOptions() | ||||
|   | ||||
| @@ -277,7 +277,9 @@ func (ss *SqliteSession) CommitTransaction() error { | ||||
| 	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() | ||||
|  | ||||
| 	countStmt := ss.txStmt(ss.backend.countStmt) | ||||
| @@ -324,7 +326,9 @@ func (ss *SqliteSession) AllKeys(hash []byte, done chan struct{}) (keys chan []b | ||||
| 	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 { | ||||
| 		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) | ||||
| } | ||||
|  | ||||
| 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 ( | ||||
| 		firstKey  int64 | ||||
| 		secondKey int64 | ||||
| @@ -409,7 +415,9 @@ func (ss *SqliteSession) interleavedSpatialQuery(first, second []byte, done chan | ||||
| 	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 ( | ||||
| 		firstKey  int64 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user