2 Commits

Author SHA1 Message Date
8b4bb890be update TODO 2025-08-10 17:46:09 -04:00
e841e11168 updates dummy health check to ensure positive duration 2025-08-02 11:01:25 -04:00
2 changed files with 4 additions and 3 deletions

View File

@@ -1,14 +1,15 @@
# TODO
- [ ] Add ability to initialize OTEL early (before app runs)
- [ ] Spruce up the README
- [ ] Create generic interface for implenting a service
- [ ] Create generic interface for implementing a service
- [ ] Create config sample not called demo, so it is more easily reused
- [ ] Expand config test case to cover GRPC config
- [ ] Expand tracing
## Done
- [x] Test and troubleshoot GRPC Gateway supprot
- [x] Test and troubleshoot GRPC Gateway support
- [x] Finish implementing GRPC service support
- [x] Unit tests
- [x] Pattern for extending config

View File

@@ -55,7 +55,7 @@ func handleHealthCheckFunc(ctx context.Context, hcFuncs ...opts.HealthCheckFunc)
}
func dummyHealthCheck(ctx context.Context) error {
workFor := rand.Intn(750)
workFor := rand.Intn(740) + 10 // ensure positive
ticker := time.NewTicker(time.Duration(time.Duration(workFor) * time.Millisecond))
select {