瀏覽代碼

fix type def

Darien Raymond 9 年之前
父節點
當前提交
187688cacb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      transport/internet/authenticators/noop/noop.go

+ 2 - 2
transport/internet/authenticators/noop/noop.go

@@ -25,8 +25,8 @@ func (this NoOpAuthenticatorFactory) Create(config interface{}) internet.Authent
 
 type NoOpConnectionAuthenticator struct{}
 
-func (NoOpConnectionAuthenticator) Open(reader io.Reader) (bool, io.Reader) {
-	return true, reader
+func (NoOpConnectionAuthenticator) Open(reader io.Reader) (io.Reader, error) {
+	return reader, nil
 }
 
 func (NoOpConnectionAuthenticator) Seal(writer io.Writer) io.Writer {