From 4b8ced75a6b8e9bdb6659811f0060bb4ea99dfb8 Mon Sep 17 00:00:00 2001 From: Laurin <42897588+suxatcode@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:46:16 +0200 Subject: [PATCH] chore: use accessor instead of property --- caddy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy.go b/caddy.go index 732b5fe2d..80290cee9 100644 --- a/caddy.go +++ b/caddy.go @@ -1105,7 +1105,7 @@ func (e Event) Origin() Module { return e.origin } // Returns the module t func (e Event) CloudEvent() CloudEvent { dataJSON, _ := json.Marshal(e.Data) var source string - if e.origin == nil { + if e.Origin() == nil { source = "caddy" } else { source = string(e.Origin().CaddyModule().ID)