log snowflake sequencer nodeid's hex when start, it'll be in part of new assigned fid

This commit is contained in:
李海
2021-03-25 18:59:40 +08:00
parent 69b2dab9c6
commit 06be5dc6c3
2 changed files with 4 additions and 2 deletions

View File

@@ -279,7 +279,6 @@ func (ms *MasterServer) createSequencer(option *MasterOption) sequence.Sequencer
}
case "snowflake":
var err error
glog.V(0).Infof("use a snowfalke seq id, nodeid %s:%d", option.Host, option.Port)
seq, err = sequence.NewSnowflakeSequencer(fmt.Sprintf("%s:%d", option.Host, option.Port))
if err != nil {
glog.Error(err)