package nmodbus import ( "git.noahlan.cn/noahlan/nnet" "git.noahlan.cn/noahlan/nnet/connection" ) func withPipeline() nnet.RunOption { return func(ngin *nnet.Engine) { ngin.Pipeline().Inbound().PushFront(func(conn *connection.Connection, v interface{}) error { conn.SetStatus(connection.StatusWorking) return nil }) } }