Skip to content

Commit

Permalink
fix: update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kianaza committed Jun 11, 2024
1 parent 81e17a6 commit 75a011f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 125 deletions.
7 changes: 3 additions & 4 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ logger:
level: "debug"

nats:
stream:
- name: "test"
subject: "test"
stream:
- name: "stream"
subject: "test" # optional
url: "localhost:4222"
publish_interval: 2s
request_timeout: 50ms
default_subject: "test"
max_pub_acks_inflight: 1000
queue_subscription_group: "group"
flush_timeout: 2s
Expand Down
1 change: 0 additions & 1 deletion internal/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func Default() Config {
URL: "localhost:4222",
PublishInterval: 2 * time.Second,
RequestTimeout: 50 * time.Millisecond,
DefaultSubject: "test",
MaxPubAcksInflight: 1000,
QueueSubscriptionGroup: "group",
FlushTimeout: 2 * time.Second,
Expand Down
1 change: 0 additions & 1 deletion internal/natsclient/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type Config struct {
URL string `json:"url,omitempty" koanf:"url"`
PublishInterval time.Duration `json:"publish_interval" koanf:"publish_interval"`
RequestTimeout time.Duration `json:"request_timeout" koanf:"request_timeout"`
DefaultSubject string `json:"default_subject" koanf:"default_subject"`
MaxPubAcksInflight int `json:"max_pub_acks_inflight" koanf:"max_pub_acks_inflight"`
QueueSubscriptionGroup string `json:"queue_subscription_group" koanf:"queue_subscription_group"`
FlushTimeout time.Duration `json:"flush_timeout" koanf:"flush_timeout"`
Expand Down
119 changes: 0 additions & 119 deletions internal/natsclient/nats.go

This file was deleted.

0 comments on commit 75a011f

Please sign in to comment.