Skip to content

Commit 3cd0b26

Browse files
committed
config: linting errors
1 parent a47937a commit 3cd0b26

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/catalyst/config/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ func GenerateConfig(cli *Cli) ([]byte, []byte, error) {
9494

9595
for _, protocol := range conf.Config.Protocols {
9696
if protocol.Connector == "livepeer-api" && !protocol.StreamInfoService {
97-
protocol.RecordCatalystObjectStoreId = recordingBucketID
98-
protocol.VODCatalystObjectStoreId = vodBucketCatalystID
97+
protocol.RecordCatalystObjectStoreID = recordingBucketID
98+
protocol.VODCatalystObjectStoreID = vodBucketCatalystID
9999
protocol.VODCatalystPrivateAssetsObjectStore = privateBucketID
100-
protocol.VODObjectStoreId = vodBucketID
100+
protocol.VODObjectStoreID = vodBucketID
101101
protocol.CORSJWTAllowlist = fmt.Sprintf(`["%s"]`, cli.PublicURL)
102102
protocol.Ingest = fmt.Sprintf(
103103
`[{"ingest":"rtmp://%s/live","ingests":{"rtmp":"rtmp://%s/live","srt":"srt://%s:8889"},"playback":"%s/mist/hls","base":"%s","origin":"%s"}]`,
@@ -155,11 +155,11 @@ func GenerateConfig(cli *Cli) ([]byte, []byte, error) {
155155
return out, []byte(sql), nil
156156
}
157157

158-
func ObjectStore(userID, publicUrl, id, bucket string) DBObject {
158+
func ObjectStore(userID, publicURL, id, bucket string) DBObject {
159159
return DBObject{
160160
"createdAt": 0,
161161
"id": id,
162-
"publicUrl": fmt.Sprintf("%s/%s", publicUrl, bucket),
162+
"publicUrl": fmt.Sprintf("%s/%s", publicURL, bucket),
163163
"url": fmt.Sprintf("s3+http://admin:password@127.0.0.1:9000/%s", bucket),
164164
"userId": userID,
165165
"kind": "object-store",

cmd/catalyst/config/mist_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ type Protocol struct {
5353
JWTSecret string `json:"jwt-secret,omitempty"`
5454
OwnRegion string `json:"own-region,omitempty"`
5555
PostgresURL string `json:"postgres-url,omitempty"`
56-
RecordCatalystObjectStoreId string `json:"recordCatalystObjectStoreId,omitempty"`
57-
VODCatalystObjectStoreId string `json:"vodCatalystObjectStoreId,omitempty"`
56+
RecordCatalystObjectStoreID string `json:"recordCatalystObjectStoreId,omitempty"`
57+
VODCatalystObjectStoreID string `json:"vodCatalystObjectStoreId,omitempty"`
5858
VODCatalystPrivateAssetsObjectStore string `json:"vodCatalystPrivateAssetsObjectStore,omitempty"`
59-
VODObjectStoreId string `json:"vodObjectStoreId,omitempty"`
59+
VODObjectStoreID string `json:"vodObjectStoreId,omitempty"`
6060
Port string `json:"port,omitempty"`
6161
StreamInfoService bool `json:"stream-info-service,omitempty"`
6262
V string `json:"v,omitempty"`

0 commit comments

Comments
 (0)