mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 01:08:33 +00:00
Style: format code by gofumpt (#761)
This commit is contained in:
parent
d77be80b40
commit
e286cdcaa8
111 changed files with 293 additions and 291 deletions
|
@ -159,7 +159,7 @@ func RequireFeatures(ctx context.Context, callback interface{}) error {
|
|||
// The instance is not started at this point.
|
||||
// To ensure Xray instance works properly, the config must contain one Dispatcher, one InboundHandlerManager and one OutboundHandlerManager. Other features are optional.
|
||||
func New(config *Config) (*Instance, error) {
|
||||
var server = &Instance{ctx: context.Background()}
|
||||
server := &Instance{ctx: context.Background()}
|
||||
|
||||
done, err := initInstanceWithConfig(config, server)
|
||||
if done {
|
||||
|
@ -170,7 +170,7 @@ func New(config *Config) (*Instance, error) {
|
|||
}
|
||||
|
||||
func NewWithContext(ctx context.Context, config *Config) (*Instance, error) {
|
||||
var server = &Instance{ctx: ctx}
|
||||
server := &Instance{ctx: ctx}
|
||||
|
||||
done, err := initInstanceWithConfig(config, server)
|
||||
if done {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue