Resolved linting issues
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/beckn/beckn-onix/pkg/log"
|
||||
"github.com/beckn/beckn-onix/pkg/model"
|
||||
"github.com/beckn/beckn-onix/pkg/plugin"
|
||||
"github.com/beckn/beckn-onix/pkg/plugin/definition"
|
||||
@@ -112,6 +113,8 @@ func (s *Step) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
func DummyHandler(ctx context.Context, mgr PluginManager, cfg *Config) (http.Handler, error) {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("Dummy Handler Response"))
|
||||
if _, err := w.Write([]byte("Dummy Handler Response")); err != nil {
|
||||
log.Error(context.Background(), err, "failed to write nack response")
|
||||
}
|
||||
}), nil
|
||||
}
|
||||
|
||||
@@ -164,18 +164,3 @@ func (b *broadcastStep) Run(ctx *model.StepContext) error {
|
||||
// TODO: Implement broadcast logic if needed
|
||||
return nil
|
||||
}
|
||||
|
||||
// subscribeStep is a stub for subscription handling.
|
||||
type subscribeStep struct{}
|
||||
|
||||
// Run is a placeholder for future implementation.
|
||||
func (s *subscribeStep) Run(ctx *model.StepContext) error {
|
||||
// TODO: Implement subscription logic if needed
|
||||
return nil
|
||||
}
|
||||
|
||||
// tracingStep wraps a Step with OpenTelemetry tracing
|
||||
type tracingStep struct {
|
||||
step definition.Step
|
||||
name string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user