Skip to content

Commit

Permalink
chore: updating bot engine interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 14, 2024
1 parent ee8655c commit 6a14f68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ func (be *BotEngine) NetworkStatus(_ []string) (*NetStatus, error) {
}, nil
}

func (be *BotEngine) MyInfo([]string) (string, error) {
func (be *BotEngine) ClaimerInfo([]string) (string, error) {
be.RLock()
defer be.RUnlock()

return "not implemented", nil
}

func (be *BotEngine) Withdraw([]string) (string, error) {
func (be *BotEngine) Claim([]string) (string, error) {
be.Lock()
defer be.Unlock()

Expand Down
4 changes: 2 additions & 2 deletions engine/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ type Engine interface {
NetworkHealth([]string) (*NetHealthResponse, error)
NetworkStatus([]string) (*NetStatus, error)
NodeInfo([]string) (*NodeInfo, error)
MyInfo([]string) (string, error)
Withdraw([]string) (string, error)
ClaimerInfo([]string) (string, error)
Claim([]string) (string, error)

Stop()
}

0 comments on commit 6a14f68

Please sign in to comment.