chore: use accessor instead of property
parent
4d9bf4a333
commit
4b8ced75a6
2
caddy.go
2
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)
|
||||
|
|
Loading…
Reference in New Issue