Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c8a82e8e
Commit
c8a82e8e
authored
Jun 05, 2023
by
Andreas Bigger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: unsubscribes and redundant methods
parent
2214da2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
challenger.go
op-challenger/challenger/challenger.go
+1
-1
factory.go
op-challenger/challenger/factory.go
+0
-5
factory.go
op-challenger/cmd/watch/factory.go
+2
-0
No files found.
op-challenger/challenger/challenger.go
View file @
c8a82e8e
...
@@ -74,7 +74,7 @@ func (c *Challenger) NewOracleSubscription() (*Subscription, error) {
...
@@ -74,7 +74,7 @@ func (c *Challenger) NewOracleSubscription() (*Subscription, error) {
// NewFactorySubscription creates a new [Subscription] listening to the DisputeGameFactory contract.
// NewFactorySubscription creates a new [Subscription] listening to the DisputeGameFactory contract.
func
(
c
*
Challenger
)
NewFactorySubscription
()
(
*
Subscription
,
error
)
{
func
(
c
*
Challenger
)
NewFactorySubscription
()
(
*
Subscription
,
error
)
{
query
,
err
:=
c
.
BuildDisputeGameLogFilter
(
)
query
,
err
:=
BuildDisputeGameLogFilter
(
c
.
dgfABI
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
op-challenger/challenger/factory.go
View file @
c8a82e8e
...
@@ -31,8 +31,3 @@ func BuildDisputeGameLogFilter(contract *abi.ABI) (ethereum.FilterQuery, error)
...
@@ -31,8 +31,3 @@ func BuildDisputeGameLogFilter(contract *abi.ABI) (ethereum.FilterQuery, error)
return
query
,
nil
return
query
,
nil
}
}
// BuildDisputeGameLogFilter creates a filter query for the DisputeGameFactory contract.
func
(
c
*
Challenger
)
BuildDisputeGameLogFilter
()
(
ethereum
.
FilterQuery
,
error
)
{
return
BuildDisputeGameLogFilter
(
c
.
dgfABI
)
}
op-challenger/cmd/watch/factory.go
View file @
c8a82e8e
...
@@ -41,6 +41,8 @@ func Factory(logger log.Logger, cfg *config.Config) error {
...
@@ -41,6 +41,8 @@ func Factory(logger log.Logger, cfg *config.Config) error {
return
err
return
err
}
}
defer
subscription
.
Quit
()
interruptChannel
:=
make
(
chan
os
.
Signal
,
1
)
interruptChannel
:=
make
(
chan
os
.
Signal
,
1
)
signal
.
Notify
(
interruptChannel
,
[]
os
.
Signal
{
signal
.
Notify
(
interruptChannel
,
[]
os
.
Signal
{
os
.
Interrupt
,
os
.
Interrupt
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment