File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
3
3
import (
4
4
"crypto/tls"
5
5
"crypto/x509"
6
- "io/ioutil"
7
6
"net/http"
8
7
"os"
9
8
"runtime"
@@ -156,7 +155,7 @@ func ConnectFarmer() {
156
155
log .Panic (err )
157
156
}
158
157
certPool := x509 .NewCertPool ()
159
- rootPEM , err := ioutil .ReadFile (RootCA )
158
+ rootPEM , err := os .ReadFile (RootCA )
160
159
if err != nil || rootPEM == nil {
161
160
log .Panicf ("nats: error loading or parsing rootCA file: %v" , err )
162
161
}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
3
3
import (
4
4
"crypto/tls"
5
5
"crypto/x509"
6
- "io/ioutil"
7
6
"os"
8
7
"time"
9
8
@@ -89,7 +88,7 @@ func ConnectSprout() {
89
88
log .Panic (err )
90
89
}
91
90
certPool := x509 .NewCertPool ()
92
- rootPEM , err := ioutil .ReadFile (SproutRootCA )
91
+ rootPEM , err := os .ReadFile (SproutRootCA )
93
92
if err != nil || rootPEM == nil {
94
93
log .Panicf ("nats: error loading or parsing rootCA file: %v" , err )
95
94
}
You can’t perform that action at this time.
0 commit comments