Resolved linting issues

This commit is contained in:
MohitKatare-protean
2025-03-26 14:33:32 +05:30
parent ff680dacbb
commit 75883c6f6a
4 changed files with 16 additions and 19 deletions

View File

@@ -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
}

View File

@@ -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
}