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 {
|
func (e Event) CloudEvent() CloudEvent {
|
||||||
dataJSON, _ := json.Marshal(e.Data)
|
dataJSON, _ := json.Marshal(e.Data)
|
||||||
var source string
|
var source string
|
||||||
if e.origin == nil {
|
if e.Origin() == nil {
|
||||||
source = "caddy"
|
source = "caddy"
|
||||||
} else {
|
} else {
|
||||||
source = string(e.Origin().CaddyModule().ID)
|
source = string(e.Origin().CaddyModule().ID)
|
||||||
|
|
Loading…
Reference in New Issue