align with honeybee updates. change ID to URL semantics.

This commit is contained in:
Jay
2026-06-08 09:43:19 -04:00
parent 69f9219819
commit 42e6e2af83
10 changed files with 88 additions and 73 deletions
+4 -4
View File
@@ -85,16 +85,16 @@ func (m *AuthManager) routeInbox() {
m.mu.Unlock()
now := time.Now()
m.envoy.Observer().Record(msg.ID, ChallengeReceived{Challenge: challenge, At: now})
m.envoy.Observer().Record(msg.URL, ChallengeReceived{Challenge: challenge, At: now})
signed, err := m.respond(challenge)
if err != nil {
m.envoy.Observer().Record(msg.ID, AuthResponseFailed{Err: err, At: time.Now()})
m.envoy.Observer().Record(msg.URL, AuthResponseFailed{Err: err, At: time.Now()})
continue
}
if err := m.envoy.Send([]byte(envelope.EncloseAuthResponse(signed))); err != nil {
m.envoy.Observer().Record(msg.ID, AuthResponseFailed{Err: err, At: time.Now()})
m.envoy.Observer().Record(msg.URL, AuthResponseFailed{Err: err, At: time.Now()})
continue
}
@@ -102,7 +102,7 @@ func (m *AuthManager) routeInbox() {
m.logger.Info("responded to auth", "challenge", challenge)
}
m.envoy.Observer().Record(msg.ID, AuthResponseSent{At: time.Now()})
m.envoy.Observer().Record(msg.URL, AuthResponseSent{At: time.Now()})
}
}
}