-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed lint errors #1270
base: main
Are you sure you want to change the base?
Fixed lint errors #1270
Conversation
📝 WalkthroughWalkthroughThe pull request introduces modifications across several files. Lint suppression comments (e.g., Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant G as GetCreateFutureEvent
participant M as MakeTopic
C->>G: Call GetCreateFutureEvent(event)
G->>M: MakeTopic(typedEvent.GetId())
alt Error occurs
M-->>G: Return error
G->>C: Return nil, error
else No error
M-->>G: Return topic
G->>M: Create additional topic (topics[2])
G->>C: Return event with topics
end
sequenceDiagram
participant T as Test Function
participant C as CloneDir
participant E as Template Executor
T->>C: Invoke CloneDir(directory)
C->>C: Recursively clone subdirectories
alt Error in recursive clone
C-->>T: Return error
else
C->>E: Execute template for files
alt Error in template execution
E-->>C: Return error
C-->>T: Return error
else
C->>T: Complete and return cloned directory
end
end
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Hey @backsapc and thank you for opening this pull request! 👋🏼 It looks like you forgot to add a changelog entry for your changes. Make sure to add a changelog entry in the 'CHANGELOG.md' file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we can replace grpc.Dial
with grpc.NewClient
also
precompiles/warden/events.go
Outdated
@@ -417,7 +417,7 @@ func (p Precompile) GetUpdateKeychainEvent(ctx sdk.Context, _ *common.Address, e | |||
var marshaled []byte | |||
if err := precommon.ParseSdkEvent(eventUpdateKeychain, func(m proto.Message) { | |||
marshaled, err = proto.Marshal(m) | |||
typedEvent.Unmarshal(marshaled) | |||
typedEvent.Unmarshal(marshaled) //nolint:errcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change ParseSdkEvent
to return error from callback and check err in this row?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -97,7 +97,7 @@ func (s PricePredictorSolidity) Execute(ctx context.Context, input []byte) ([]by | |||
|
|||
var backtestingRes *BacktestingResponse | |||
if len(inputData.Metrics) > 0 { | |||
res, err := s.c.Backtesting(ctx, BacktestingRequest{ | |||
res, err := s.c.Backtesting(ctx, BacktestingRequest{ //nolint:all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S1016: should convert req (type PredictRequest) to BacktestingRequest instead of using struct literal (gosimple)
Can you please make method that will convert PredictRequest to BacktestingRequest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LTTM
Summary by CodeRabbit
Bug Fixes
Chores