File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,21 @@ type Event struct {
20
20
// ID sets the event ID
21
21
func (e * Event ) ID (id string ) * Event {
22
22
e .id = id
23
+ e .bufSet = false
23
24
return e
24
25
}
25
26
26
27
// Type sets the event's event: field
27
28
func (e * Event ) Type (t string ) * Event {
28
29
e .event = t
30
+ e .bufSet = false
29
31
return e
30
32
}
31
33
32
34
// Type sets the event's retry: field
33
35
func (e * Event ) Retry (t uint64 ) * Event {
34
36
e .retry = t
37
+ e .bufSet = false
35
38
return e
36
39
}
37
40
@@ -124,6 +127,7 @@ func (e *Event) WriteString(p string) {
124
127
// This does no validation to ensure it is in a correct format
125
128
// and should mostly be used to deep copy another event
126
129
func (e * Event ) WriteRaw (p []byte ) (int , error ) {
130
+ e .bufSet = true
127
131
return e .buf .Write (p )
128
132
}
129
133
You can’t perform that action at this time.
0 commit comments