zouxuan 5 年 前
コミット
fc91d0f1da

+ 2 - 0
edu-im/edu-im-api/src/main/java/com/keao/edu/im/api/client/ImFeignService.java

@@ -5,6 +5,7 @@ import java.util.List;
 import com.keao.edu.im.api.entity.*;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.http.MediaType;
+import org.springframework.scheduling.annotation.Async;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
@@ -150,5 +151,6 @@ public interface ImFeignService {
 	 * @return
 	 */
 	@PostMapping(value = "room/destroyRoom")
+	@Async
 	void destroyRoom(@RequestParam("roomId") Long roomId,@RequestParam("userId") String userId);
 }