Skip to content

Commit 3ff2e07

Browse files
committed
Make CustomEvent::getEventInfo() pure virtual
1 parent 61509fa commit 3ff2e07

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/workerd/io/worker-interface.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,8 @@ class WorkerInterface: public kj::HttpService {
132132
virtual uint16_t getType() = 0;
133133

134134
// Get event info for tracing.
135-
// Return none if this event type doesn't need tracing.
136-
virtual kj::Maybe<tracing::EventInfo> getEventInfo() const {
137-
return kj::none;
138-
}
135+
// Return kj::none if this event type doesn't need tracing.
136+
virtual kj::Maybe<tracing::EventInfo> getEventInfo() const = 0;
139137

140138
// If the CustomEvent fails before any of the other methods are called, this may be invoked
141139
// to report the failure reason.

0 commit comments

Comments
 (0)