Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
e91a0772
Unverified
Commit
e91a0772
authored
8 years ago
by
Silas Davis
Browse files
Options
Downloads
Patches
Plain Diff
arch -> util/architecture
parent
1afdb99b
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
blockchain/filter.go
+4
-4
4 additions, 4 deletions
blockchain/filter.go
util/architecture/constants.go
+1
-1
1 addition, 1 deletion
util/architecture/constants.go
util/architecture/constants_arm.go
+1
-1
1 addition, 1 deletion
util/architecture/constants_arm.go
with
6 additions
and
6 deletions
blockchain/filter.go
+
4
−
4
View file @
e91a0772
...
...
@@ -7,10 +7,10 @@ import (
"sync"
"github.com/eris-ltd/eris-db/arch"
blockchain_types
"github.com/eris-ltd/eris-db/blockchain/types"
core_types
"github.com/eris-ltd/eris-db/core/types"
"github.com/eris-ltd/eris-db/event"
"github.com/eris-ltd/eris-db/util/architecture"
tendermint_types
"github.com/tendermint/tendermint/types"
)
...
...
@@ -48,8 +48,8 @@ func FilterBlocks(blockchain blockchain_types.Blockchain,
height
:=
blockchain
.
Height
()
if
height
==
0
{
return
&
core_types
.
Blocks
{
MinHeight
:
0
,
MaxHeight
:
0
,
MinHeight
:
0
,
MaxHeight
:
0
,
BlockMetas
:
[]
*
tendermint_types
.
BlockMeta
{},
},
nil
}
...
...
@@ -87,7 +87,7 @@ func (blockHeightFilter *BlockHeightFilter) Configure(fd *event.FilterData) erro
if
fd
.
Value
==
"min"
{
val
=
0
}
else
if
fd
.
Value
==
"max"
{
val
=
arch
.
MaxInt32
val
=
arch
itecture
.
MaxInt32
}
else
{
tv
,
err
:=
strconv
.
ParseInt
(
fd
.
Value
,
10
,
0
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
arch
/constants.go
→
util/architecture
/constants.go
+
1
−
1
View file @
e91a0772
// +build !arm
package
arch
package
arch
itecture
import
"math"
...
...
This diff is collapsed.
Click to expand it.
arch
/constants_arm.go
→
util/architecture
/constants_arm.go
+
1
−
1
View file @
e91a0772
package
arch
package
arch
itecture
import
"math"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment