Skip to content

Commit

Permalink
Merge pull request #471 from ahrtr/rename_runoperation_20230424
Browse files Browse the repository at this point in the history
test: rename runOperation to executeOperation
  • Loading branch information
ahrtr authored Apr 24, 2023
2 parents b312285 + ec3ff47 commit bd7d6e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concurrent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (w *worker) run() (historyRecords, error) {
}

op := w.pickOperation()
rec, err := runOperation(op, w.db, w.bucket, w.keys, w.conf)
rec, err := executeOperation(op, w.db, w.bucket, w.keys, w.conf)
if err != nil {
readErr := fmt.Errorf("[%s: %s]: %w", w.name(), op, err)
w.t.Error(readErr)
Expand Down Expand Up @@ -294,7 +294,7 @@ func (w *worker) pickOperation() OperationType {
panic("unexpected")
}

func runOperation(op OperationType, db *btesting.DB, bucket []byte, keys []string, conf concurrentConfig) (historyRecord, error) {
func executeOperation(op OperationType, db *btesting.DB, bucket []byte, keys []string, conf concurrentConfig) (historyRecord, error) {
switch op {
case Read:
return executeRead(db, bucket, keys, conf.readInterval)
Expand Down

0 comments on commit bd7d6e9

Please sign in to comment.