steem-block-db/main.go

26 lines
534 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 "fmt"
import "sync"
import "time"
2018-10-31 09:44:19 +00:00
import "encoding/json"
2018-10-31 08:48:53 +00:00
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{
logLevel: log.DebugLevel,
apiUrl: steemAPIURL,
redisUrl: redisUrl,
fetcherThreads: 40,
})
2018-10-31 08:48:53 +00:00
app.main()
}