mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
internal/server/ship_processor.go: adding FetchDeltas()
This commit is contained in:
parent
bedb8a92e8
commit
33c983f6c5
1 changed files with 9 additions and 0 deletions
|
|
@ -66,6 +66,15 @@ func SpawnProccessor(shipStream *shipclient.Stream, loader StateLoader, saver St
|
|||
return processor
|
||||
}
|
||||
|
||||
func (processor *ShipProcessor) FetchDeltas(value bool) {
|
||||
if value {
|
||||
// empty callback will signal that traces should be included in the response from ship.
|
||||
processor.shipStream.TableDeltaHandler = func(*ship.TableDeltaArray) {}
|
||||
} else {
|
||||
processor.shipStream.TableDeltaHandler = nil
|
||||
}
|
||||
}
|
||||
|
||||
func (processor *ShipProcessor) SetBlacklist(list types.Blacklist) {
|
||||
processor.blacklist = list
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue