mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-12-24 10:40:55 +08:00
fix: golangci lint code
This commit is contained in:
3
.github/RELEASE.md
vendored
3
.github/RELEASE.md
vendored
@@ -3,3 +3,6 @@
|
||||
|
||||
1. Improved SSE service shutdown process — now automatically sends a close event to clients upon exit. [#136](https://github.com/go-dev-frame/sponge/issues/136)
|
||||
2. Added gRPC performance testing support to `perftest`, expanding its benchmarking capabilities.
|
||||
|
||||
fix PostgreSQL's timestamptz type support [#141](https://github.com/go-dev-frame/sponge/issues/141)
|
||||
|
||||
|
||||
@@ -194,11 +194,7 @@ func (c *TLSSelfSignedConfig) createCert() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: b})
|
||||
}
|
||||
|
||||
func (c *TLSSelfSignedConfig) Run(server *http.Server) error {
|
||||
|
||||
Reference in New Issue
Block a user