Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

respect timeout value in config file #482

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ayanamist
Copy link
Contributor

@ayanamist ayanamist commented Jul 2, 2019

Since ss.UpdateConfig will merge non-zero value in new, but cmdConfig from flag.Parse will always has a default value (300) from flag.IntVar(&cmdConfig.Timeout, ....), so the timeout value from config file will always be overwritten until explicit specify -t xxx in cmd line.
This PR fix this issue and respect timeout value in config file if no -t xxx is specified in cmd line.

@ayanamist ayanamist changed the title fix timeout support in config file respect timeout value in config file Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant