-
Notifications
You must be signed in to change notification settings - Fork 262
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
Fixing Linters and tests in file-stores (ftp, sftp, s3) #1262
Conversation
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.
Lets create 3 different PRs.
@@ -80,7 +84,7 @@ func (f *fileSystem) Connect() { | |||
var status string | |||
|
|||
ftpBuckets := []float64{.05, .075, .1, .125, .15, .2, .3, .5, .75, 1, 2, 3, 4, 5, 7.5, 10} | |||
f.metrics.NewHistogram(appFtpStats, "Response time of File System operations in milliseconds.", ftpBuckets...) | |||
f.metrics.NewHistogram(appFTPStats, "Response time of File System operations in milliseconds.", ftpBuckets...) |
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.
time should be in microseconds as we are exporting time in microseconds
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.
Lets create 3 different PRs.
@@ -20,9 +18,23 @@ import ( | |||
file "gofr.dev/pkg/gofr/datasource/file" | |||
) | |||
|
|||
const ( | |||
TypeFile = "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.
why exported?
Closing as separated PRs are being created. |
Checklist:
goimport
andgolangci-lint
.Thank you for your contribution!