steem-block-db/main.go

23 lines
527 B
Go
Raw Normal View History

2018-10-04 18:41:39 +00:00
package main
2018-10-31 08:48:53 +00:00
//import "github.com/spf13/viper"
//import "encoding/json"
import log "github.com/sirupsen/logrus"
2018-10-04 18:41:39 +00:00
2018-10-18 08:39:41 +00:00
const steemAPIURL = "https://api.steemit.com"
2018-11-01 03:35:30 +00:00
const redisUrl = "localhost:6379"
//const steemAPIURL = "http://10.100.202.175:8090"
//const steemAPIURL = "http://las2.local:8090"
2018-10-18 07:09:30 +00:00
2018-10-04 18:41:39 +00:00
func main() {
2018-11-01 03:35:30 +00:00
app := NewApp(&appconfig{
2018-11-03 14:59:46 +00:00
logLevel: log.DebugLevel,
// logLevel: log.InfoLevel,
2018-11-03 14:41:53 +00:00
apiUrl: steemAPIURL,
redisUrl: redisUrl,
2018-11-03 14:59:46 +00:00
desiredFetcherThreads: 40,
2018-11-01 03:35:30 +00:00
})
2018-10-31 08:48:53 +00:00
app.main()
}