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 07:14:13 +00:00
|
|
|
log.SetLevel(log.DebugLevel)
|
|
|
|
var x *BlockFetcher
|
|
|
|
x = NewBlockFetcher(&BlockFetcherConfig{
|
|
|
|
api: nil,
|
|
|
|
desiredFetcherThreads: 40,
|
|
|
|
startBlock: 10000,
|
|
|
|
endBlock: 10005,
|
|
|
|
})
|
|
|
|
_ = x
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
func mainx() {
|
2018-11-01 03:35:30 +00:00
|
|
|
app := NewApp(&appconfig{
|
|
|
|
logLevel: log.DebugLevel,
|
|
|
|
apiUrl: steemAPIURL,
|
|
|
|
redisUrl: redisUrl,
|
|
|
|
fetcherThreads: 40,
|
|
|
|
})
|
2018-10-31 08:48:53 +00:00
|
|
|
app.main()
|
|
|
|
}
|
2018-11-01 07:14:13 +00:00
|
|
|
|
|
|
|
*/
|