Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cmsoft committed Dec 6, 2024
1 parent 0791d1d commit d7c9b98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions internal/event/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package event
import (
"encoding/json"
"errors"
"github.com/nats-io/nats.go"
"github.com/hashicorp/go-hclog"
"github.com/nats-io/nats.go"
"sync"
)

const NATS_RECONNECT_BUF_SIZE = 5*1024*1024
const NATS_RECONNECT_BUF_SIZE = 5 * 1024 * 1024

type NatsBus struct {
logger hclog.Logger

conn *nats.Conn
mu sync.Mutex
conn *nats.Conn
mu sync.Mutex
}

func NewNatsBus(logger hclog.Logger) *NatsBus {
Expand Down
14 changes: 7 additions & 7 deletions runner/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package runner
import "github.com/chris-cmsoft/concom/runner/proto"

type Result struct {
Status proto.ExecutionStatus `json:"status"`
AssessmentId string `json:"assessmentId"`
Error error `json:"error"`
Observations []*proto.Observation `json:"observations"`
Findings []*proto.Finding `json:"findings"`
Risks []*proto.Risk `json:"risks"`
Logs []*proto.LogEntry `json:"logs"`
Status proto.ExecutionStatus `json:"status"`
AssessmentId string `json:"assessmentId"`
Error error `json:"error"`
Observations []*proto.Observation `json:"observations"`
Findings []*proto.Finding `json:"findings"`
Risks []*proto.Risk `json:"risks"`
Logs []*proto.LogEntry `json:"logs"`
}

func ErrorResult(assessmentId string, err error) *Result {
Expand Down

0 comments on commit d7c9b98

Please sign in to comment.