Skip to content

Commit

Permalink
feat: Update golangci-lint to version 1.59.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Jun 4, 2024
1 parent d22f597 commit bec9f45
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 202 deletions.
1 change: 0 additions & 1 deletion deploy/process-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Process compose for starting django
version: "0.5"

processes:
Expand Down
1 change: 0 additions & 1 deletion deploy/process-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Process compose for starting django
version: "0.5"

processes:
Expand Down
176 changes: 88 additions & 88 deletions devbox.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion internal/actor/cache.go

This file was deleted.

17 changes: 0 additions & 17 deletions internal/local/clients.go

This file was deleted.

85 changes: 0 additions & 85 deletions internal/local/encrypt.go

This file was deleted.

18 changes: 10 additions & 8 deletions internal/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package local
import (
"os"

"github.com/ipfs/kubo/client/rpc"
"github.com/tink-crypto/tink-go/v2/keyset"
)

Expand All @@ -18,7 +19,6 @@ var (

// Initialize initializes the local configuration values
func Initialize() {
setupKeyHandle()
}

// SetLocalContextSessionID sets the session ID for the local context
Expand All @@ -31,12 +31,14 @@ func SetLocalChainID(id string) {
chainID = id
}

func setupKeyHandle() {
if _, err := os.Stat(keysetFile()); os.IsNotExist(err) {
// If the keyset file doesn't exist, generate a new key handle
kh, _ = NewKeyHandle()
} else {
// If the keyset file exists, load the key handle from the file
kh, _ = ReadKeyHandle()
// IPFSClient is an interface for interacting with an IPFS node.
type IPFSClient = *rpc.HttpApi

// NewLocalClient creates a new IPFS client that connects to the local IPFS node.
func GetIPFSClient() (IPFSClient, error) {
rpcClient, err := rpc.NewLocalApi()
if err != nil {
return nil, err
}
return rpcClient, nil
}
1 change: 0 additions & 1 deletion process-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Process compose for starting django
version: "0.5"

processes:
Expand Down

0 comments on commit bec9f45

Please sign in to comment.