File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ type Options struct {
102
102
// SecProtocol is the comma separated list of security protocols used by xrootd.
103
103
// For example: "sss, unix"
104
104
SecProtocol string
105
-
106
- httpopts ehttp.Options
107
105
}
108
106
109
107
func (opt * Options ) init () {
@@ -120,11 +118,6 @@ func (opt *Options) init() {
120
118
opt .CacheDirectory = os .TempDir ()
121
119
}
122
120
123
- if opt .httpopts .Init () != nil {
124
- panic ("Cant't init the EOS http client options" )
125
- }
126
- opt .httpopts .BaseURL = opt .URL
127
-
128
121
}
129
122
130
123
// Client performs actions against a EOS management node (MGM)
@@ -136,7 +129,14 @@ type Client struct {
136
129
137
130
// GetHTTPCl creates an http client for immediate usage, using the already instantiated resources
138
131
func (c * Client ) GetHTTPCl () * ehttp.Client {
139
- return ehttp .New (& c .opt .httpopts )
132
+ var htopts ehttp.Options
133
+
134
+ if htopts .Init () != nil {
135
+ panic ("Cant't init the EOS http client options" )
136
+ }
137
+ htopts .BaseURL = c .opt .URL
138
+
139
+ return ehttp .New (& htopts )
140
140
}
141
141
142
142
// Create and connect a grpc eos Client
You can’t perform that action at this time.
0 commit comments