tka: keep the CompactionDefaults alongside the other limits

Updates #cleanup

Change-Id: Ib5e481d5a9c7ec7ac3e6b3913909ab1bf21d7a4d
Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
Alex Chan
2026-04-10 09:36:22 +01:00
committed by Alex Chan
parent 03c3551ee5
commit 1ff369a261
3 changed files with 19 additions and 7 deletions
+6
View File
@@ -8,6 +8,7 @@ package tka
import (
"crypto/ed25519"
"errors"
"time"
"tailscale.com/types/key"
"tailscale.com/types/logger"
@@ -158,3 +159,8 @@ func SignByCredential(privKey []byte, wrapped *NodeKeySignature, nodeKey key.Nod
}
func (s NodeKeySignature) String() string { return "" }
type CompactionOptions struct {
MinChain int
MinAge time.Duration
}