Skip to content

Commit

Permalink
feat: remove unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
DenzelPenzel committed Jul 11, 2024
1 parent 5a8ddab commit 389a729
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
args: -exclude G104,G304 ./...
51 changes: 51 additions & 0 deletions cmd/client/rand/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package main

type Op int

func (o Op) String() string {
switch o {
case Set:
return "Set"
case Add:
return "Add"
case Replace:
return "Replace"
case Append:
return "Append"
case Prepend:
return "Prepend"
case Get:
return "Get"
case Gat:
return "Get and Touch"
case Bget:
return "Batch Get"
case Delete:
return "Delete"
case Touch:
return "Touch"
default:
return ""
}
}

const (
Get Op = iota
Bget
Gat
Set
Add
Replace
Append
Prepend
Touch
Delete
)

var allOps = []Op{Get, Set, Add, Delete, Replace, Append, Prepend}

type metric struct {
duration int64
op Op
miss bool
}
67 changes: 0 additions & 67 deletions cmd/client/types.go

This file was deleted.

0 comments on commit 389a729

Please sign in to comment.