mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
typo
This commit is contained in:
parent
c260ab457f
commit
67e5f5b558
|
@ -64,12 +64,12 @@ var cmdMount = &Command{
|
||||||
func parseFilerGrpcAddress(filer string) (filerGrpcAddress string, err error) {
|
func parseFilerGrpcAddress(filer string) (filerGrpcAddress string, err error) {
|
||||||
hostnameAndPort := strings.Split(filer, ":")
|
hostnameAndPort := strings.Split(filer, ":")
|
||||||
if len(hostnameAndPort) != 2 {
|
if len(hostnameAndPort) != 2 {
|
||||||
return "", fmt.Errorf("The filer should have hostname:port format: %v", hostnameAndPort)
|
return "", fmt.Errorf("filer should have hostname:port format: %v", hostnameAndPort)
|
||||||
}
|
}
|
||||||
|
|
||||||
filerPort, parseErr := strconv.ParseUint(hostnameAndPort[1], 10, 64)
|
filerPort, parseErr := strconv.ParseUint(hostnameAndPort[1], 10, 64)
|
||||||
if parseErr != nil {
|
if parseErr != nil {
|
||||||
return "", fmt.Errorf("The filer filer port parse error: %v", parseErr)
|
return "", fmt.Errorf("filer port parse error: %v", parseErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
filerGrpcPort := int(filerPort) + 10000
|
filerGrpcPort := int(filerPort) + 10000
|
||||||
|
|
|
@ -76,7 +76,7 @@ func (k *KafkaQueue) handleError() {
|
||||||
for {
|
for {
|
||||||
err := <-k.producer.Errors()
|
err := <-k.producer.Errors()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("producer message error, partition:%d offset:%d key:%v valus:%s error(%v) topic:%s", err.Msg.Partition, err.Msg.Offset, err.Msg.Key, err.Msg.Value, err.Err, k.topic)
|
glog.Errorf("producer message error, partition:%d offset:%d key:%v value:%s error(%v) topic:%s", err.Msg.Partition, err.Msg.Offset, err.Msg.Key, err.Msg.Value, err.Err, k.topic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue