Skip to content

Commit 326891f

Browse files
committed
migrating some cosmos stuff
1 parent b72b97a commit 326891f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

utility_containers/event-puller/.cspell/custom-dictionary.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
AKIA
2+
azcosmos
23
bacalhau
34
bacalhauproject
45
bubbletea
56
charmbracelet
7+
containerenv
68
datestamp
79
DHGR
10+
dockerenv
811
dotenv
912
FLDYOBFDVW
1013
FLDYOBFGMGMNNMZ
@@ -13,6 +16,7 @@ glyphicon
1316
GOARCH
1417
godotenv
1518
joho
19+
kubepods
1620
ldflags
1721
LEGA
1822
lipgloss
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package main

utility_containers/event-puller/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ func (m *model) addLog(format string, args ...interface{}) {
14851485
}
14861486

14871487
// Initialize Cosmos DB client
1488-
func initCosmosClient(ctx context.Context) (*azcosmos.Client, bool, error) {
1488+
func initCosmosClient(_ context.Context) (*azcosmos.Client, bool, error) {
14891489
endpoint := os.Getenv("COSMOS_ENDPOINT")
14901490
key := os.Getenv("COSMOS_KEY")
14911491

@@ -1510,7 +1510,7 @@ func initCosmosClient(ctx context.Context) (*azcosmos.Client, bool, error) {
15101510
}
15111511

15121512
// Get a container client for Cosmos DB
1513-
func getCosmosContainer(client *azcosmos.Client, ctx context.Context) (*azcosmos.ContainerClient, error) {
1513+
func getCosmosContainer(client *azcosmos.Client, _ context.Context) (*azcosmos.ContainerClient, error) {
15141514
databaseName := os.Getenv("COSMOS_DATABASE")
15151515
containerName := os.Getenv("COSMOS_CONTAINER")
15161516

0 commit comments

Comments
 (0)