Commit ea2ed49
Define an ExecutionTrackerSetter interface in cmd/server/main.go alongside
the other local server interfaces. The loop in registerPostStartServices now
uses a single interface assertion instead of a type switch on *module.QueryHandler
and *module.CommandHandler, so new module types that need execution tracking
only need to implement SetExecutionTracker — no server changes required.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 06ecdab commit ea2ed49
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
240 | 248 | | |
241 | 249 | | |
242 | 250 | | |
| |||
945 | 953 | | |
946 | 954 | | |
947 | 955 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
| 956 | + | |
952 | 957 | | |
953 | 958 | | |
954 | 959 | | |
| |||
0 commit comments