mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 08:16:52 +01:00
Probe for another path when the data path finds a tunnel's remote unreachable
This commit is contained in:
1 parent
0ff077fea3
commit
2fd9966fef
17 files changed
+242
-54
No files matched your search
@@ -80,11 +80,11 @@ func TestWriteBatchNoAllocs(t *testing.T) {
|
||||
|
||||
var werr error
|
||||
// Warm-up outside the measured runs.
|
||||
if _, err := tx.WriteBatch(bufs, addrs); err != nil {
|
||||
if _, err := tx.WriteBatch(bufs, addrs, nil); err != nil {
|
||||
t.Fatalf("WriteBatch warm-up: %v", err)
|
||||
}
|
||||
allocs := testing.AllocsPerRun(100, func() {
|
||||
if _, err := tx.WriteBatch(bufs, addrs); err != nil {
|
||||
if _, err := tx.WriteBatch(bufs, addrs, nil); err != nil {
|
||||
werr = err
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user