Browse Source

gofmt

pull/7983/head
William Banfield 3 years ago
parent
commit
9481aac897
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
6 changed files with 18 additions and 17 deletions
  1. +2
    -2
      internal/state/helpers_test.go
  2. +3
    -3
      internal/state/indexer/sink/kv/kv_test.go
  3. +3
    -3
      internal/state/indexer/sink/psql/psql_test.go
  4. +3
    -3
      internal/state/indexer/tx/kv/kv_bench_test.go
  5. +6
    -6
      internal/state/indexer/tx/kv/kv_test.go
  6. +1
    -0
      tools/tools.go

+ 2
- 2
internal/state/helpers_test.go View File

@ -312,8 +312,8 @@ func (app *testApp) FinalizeBlock(req abci.RequestFinalizeBlock) abci.ResponseFi
AppVersion: 1,
},
},
Events: []abci.Event{},
TxResults: resTxs,
Events: []abci.Event{},
TxResults: resTxs,
}
}


+ 3
- 3
internal/state/indexer/sink/kv/kv_test.go View File

@ -339,9 +339,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}


+ 3
- 3
internal/state/indexer/sink/psql/psql_test.go View File

@ -266,9 +266,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: types.Tx("HELLO WORLD"),
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}


+ 3
- 3
internal/state/indexer/tx/kv/kv_bench_test.go View File

@ -44,9 +44,9 @@ func BenchmarkTxSearch(b *testing.B) {
Index: 0,
Tx: types.Tx(string(txBz)),
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}


+ 6
- 6
internal/state/indexer/tx/kv/kv_test.go View File

@ -323,9 +323,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}
@ -347,9 +347,9 @@ func benchmarkTxIndex(txsCount int64, b *testing.B) {
Index: txIndex,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: []abci.Event{},
},
}


+ 1
- 0
tools/tools.go View File

@ -1,3 +1,4 @@
//go:build tools
// +build tools
// This file uses the recommended method for tracking developer tools in a go module.


Loading…
Cancel
Save