mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-19 12:07:18 +02:00
databroker: add support for putting multiple records (#3291)
* databroker: add support for putting multiple records * add OptimumPutRequestsFromRecords function * replace GetAll with SyncLatest * fix stream when there are no records
This commit is contained in:
parent
343fa43ed4
commit
f73c5c615f
28 changed files with 790 additions and 660 deletions
|
@ -64,11 +64,11 @@ func TestConfigSource(t *testing.T) {
|
|||
},
|
||||
})
|
||||
_, _ = dataBrokerServer.Put(ctx, &databroker.PutRequest{
|
||||
Record: &databroker.Record{
|
||||
Records: []*databroker.Record{{
|
||||
Type: data.TypeUrl,
|
||||
Id: "1",
|
||||
Data: data,
|
||||
},
|
||||
}},
|
||||
})
|
||||
|
||||
select {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue