services -> domains
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
const (
|
||||
// KV bucket names
|
||||
BucketServices = "wild-services" // service registrations
|
||||
BucketDomains = "wild-domains" // domain registrations
|
||||
BucketPresence = "wild-presence" // node liveness (TTL keys)
|
||||
|
||||
// Stream names
|
||||
@@ -126,13 +126,13 @@ func (s *Server) ensureBuckets() error {
|
||||
|
||||
// Services bucket — no TTL, entries persist until explicitly deleted
|
||||
_, err := s.js.CreateOrUpdateKeyValue(ctx, jetstream.KeyValueConfig{
|
||||
Bucket: BucketServices,
|
||||
Bucket: BucketDomains,
|
||||
Description: "Service registrations from Wild Cloud, Wild Works, and manual entries",
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("services bucket: %w", err)
|
||||
}
|
||||
slog.Info("NATS KV bucket ready", "bucket", BucketServices)
|
||||
slog.Info("NATS KV bucket ready", "bucket", BucketDomains)
|
||||
|
||||
// Presence bucket — TTL-based, keys expire when nodes stop renewing
|
||||
_, err = s.js.CreateOrUpdateKeyValue(ctx, jetstream.KeyValueConfig{
|
||||
|
||||
Reference in New Issue
Block a user