Skip to content

Commit

Permalink
mod tidy (#146)
Browse files Browse the repository at this point in the history
* mod tidy

* manually restore vendor

* manually restore vendor
  • Loading branch information
asabya committed Dec 13, 2021
1 parent 79996ad commit 6c7b79f
Show file tree
Hide file tree
Showing 218 changed files with 313,331 additions and 12 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ require (
github.com/gorilla/websocket v1.4.2
github.com/hashicorp/golang-lru v0.5.4
github.com/klauspost/pgzip v1.2.5
github.com/libp2p/go-libp2p-autonat-svc v0.1.0 // indirect
github.com/mattn/go-sqlite3 v1.14.6 // indirect
github.com/mattn/go-tty v0.0.3 // indirect
github.com/miguelmota/go-ethereum-hdwallet v0.0.0-20200123000308-a60dcd172b4c
github.com/mitchellh/go-homedir v1.1.0
Expand Down
9 changes: 3 additions & 6 deletions pkg/collection/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ type KVTable struct {
}

type KVCount struct {
Count uint64 `json:"count"`
TableName string `json:"table_name"`
Count uint64 `json:"count"`
}

// NewKeyValueStore is the main object used to do all operation on the key value tables.
Expand Down Expand Up @@ -183,8 +182,7 @@ func (kv *KeyValue) KVCount(name string) (*KVCount, error) {
return nil, err
}
return &KVCount{
Count: count,
TableName: name,
Count: count,
}, nil
} else {
idx, err := OpenIndex(kv.podName, defaultCollectionName, name, kv.fd, kv.ai, kv.user, kv.client, kv.logger)
Expand All @@ -196,8 +194,7 @@ func (kv *KeyValue) KVCount(name string) (*KVCount, error) {
return nil, err
}
return &KVCount{
Count: count,
TableName: name,
Count: count,
}, nil
}
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/dir/rmdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ func (d *Directory) RmRootDir() error {
dirToDelete := filepath.Base("/")

// check if directory present
var totalPath string
totalPath = utils.CombinePathAndFile(d.podName, dirToDelete, "")
var totalPath = utils.CombinePathAndFile(d.podName, dirToDelete, "")

if d.GetDirFromDirectoryMap(totalPath) == nil {
return ErrDirectoryNotPresent
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6c7b79f

Please sign in to comment.